From 2c9faf66b3dbc3cc7d60fee828d30bdab5da4451 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Wed, 2 Feb 2022 20:38:55 +0100 Subject: [PATCH] Remove "Press Return" if not in building --- apply-single-patch.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apply-single-patch.sh b/apply-single-patch.sh index ba072d5..10455b8 100644 --- a/apply-single-patch.sh +++ b/apply-single-patch.sh @@ -70,12 +70,11 @@ if [[ DOBUILD -eq 1 ]]; then DOEXPORT=1 -fi - -if [[ OK -eq 0 ]]; then - if [ -z "$SILENT" ]; then - echo "Read to add $PATCH. Press return" - read -n 1 + if [[ OK -eq 0 ]]; then + if [ -z "$SILENT" ]; then + echo "Read to add $PATCH. Press return" + read -n 1 + fi fi fi