Move display increment to function

This commit is contained in:
2023-03-24 19:29:26 -04:00
parent 97f4af8075
commit 6ab5605ea5

View File

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