From 6ad5e289e102fc619725f7152e0f46eb042efa01 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Mon, 1 May 2023 00:17:12 +0200 Subject: [PATCH] =?UTF-8?q?Pas=20de=20message=20d'erreur=20si=20la=20comma?= =?UTF-8?q?nde=20status=20est=20utilis=C3=A9e=20alors=20que=20le=20serveur?= =?UTF-8?q?=20ne=20tourne=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/vncctl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/vncctl b/bin/vncctl index bfe67a5..7ba3f51 100755 --- a/bin/vncctl +++ b/bin/vncctl @@ -1,7 +1,7 @@ #!/bin/sh # cd to the local VNC directory, exit if it fails -cd "${HOME}/.vnc" || exit 6 +cd "${HOME}/.vnc" || exit 5 # Variables file_base="./$(hostname):1." @@ -35,7 +35,7 @@ start() { if ! is_running; then vncserver else - error "The VNC server is already running!" 5 + error "The VNC server is already running!" 4 fi } @@ -44,7 +44,7 @@ status() { if is_running; then tail -f "$log_f" else - error "The VNC server is not running!" 4 + echo "The VNC server is not running." fi }