Skip to content

Commit 7015049

Browse files
fixed bug with vnc
1 parent 44fb5bf commit 7015049

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

etc/scripts/hippo/hippo.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ function _lauch_or_install()
169169

170170

171171
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1 >> /dev/null
172-
if [ -f "{CACHE_ROOT}"/ubuntu-on-android/etc/scripts/vncserver/startvnc.sh ] && [ ! -f ${HIPPO_DIR}/bin/startvnc ]; then
173-
DIR="{CACHE_ROOT}/ubuntu-on-android/etc/scripts/vncserver/startvnc.sh"
174-
cp ${DIR} ${HIPPO_DIR}/bin/startvnc
172+
if [[ -f "${CACHE_ROOT}"/ubuntu-on-android/etc/scripts/vncserver/startvnc.sh ]] && [[ ! -f ${HIPPO_DIR}/bin/startvnc ]]; then
173+
DIR="${CACHE_ROOT}/ubuntu-on-android/etc/scripts/vncserver/startvnc.sh"
174+
cp "${DIR}" ${HIPPO_DIR}/bin/startvnc
175175
proot-distro login hippo -- chmod 775 /bin/startvnc
176176
fi
177-
if [ -f "{CACHE_ROOT}"/ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh ] && [ ! -f ${HIPPO_DIR}/bin/stopvnc ]; then
177+
if [ -f "${CACHE_ROOT}"/ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh ] && [ ! -f ${HIPPO_DIR}/bin/stopvnc ]; then
178178
DIR="${CACHE_ROOT}/ubuntu-on-android/etc/scripts/vncserver/stopvnc.sh"
179179
cp "${DIR}" ${HIPPO_DIR}/bin/stopvnc
180180
proot-distro login hippo -- chmod 775 /bin/stopvnc

0 commit comments

Comments
 (0)