From 6ab5605ea58456988f3f4c9cb13c277c4a639a69 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 24 Mar 2023 19:29:26 -0400 Subject: [PATCH] Move display increment to function --- installJRMC | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installJRMC b/installJRMC index c85ad36..282dd9f 100755 --- a/installJRMC +++ b/installJRMC @@ -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"