Move display increment to function

This commit is contained in:
2023-03-24 19:29:26 -04:00
부모 97f4af8075
커밋 6ab5605ea5

파일 보기

@@ -1357,8 +1357,9 @@ service_jriver-xvnc() {
max=$(( DISPLAYNUM + 10 ))
while [[ $NEXT_DISPLAYNUM -lt $max ]]; do
echo "Incrementing DISPLAY and retrying"
service_jriver-xvnc
service_jriver-xvnc && return
done
return 1
else
echo "Xvnc running on localhost:$PORT"
openFirewall "jriver-xvnc" "$PORT/tcp"