From bceaea926998811b8eec19f5caca67f00a58df9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=20Viinam=C3=A4ki?= Date: Sun, 8 Oct 2017 15:17:54 +0300 Subject: [PATCH] Remove "Press enter to continue" if sm exists successfully --- roles/stepmania/files/start.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/stepmania/files/start.sh b/roles/stepmania/files/start.sh index f540212..58723bc 100644 --- a/roles/stepmania/files/start.sh +++ b/roles/stepmania/files/start.sh @@ -16,6 +16,7 @@ unclutter -idle 1 -root & pasuspender /stepmania/stepmania -# wait until enter is pressed -read -p "Press enter to continue" - +if [[ $? -ne 0 ]]; then + # wait until enter is pressed + read -p "Press enter to continue" +fi