From ebbc553576fa2bbd55196cbdbf8f8d35e91c59be Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 6 Mar 2024 16:53:07 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- Viewer/archive/media/img/my/work/sync-flash.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Viewer/archive/media/img/my/work/sync-flash.sh b/Viewer/archive/media/img/my/work/sync-flash.sh index 2bb2867a..39746da6 100755 --- a/Viewer/archive/media/img/my/work/sync-flash.sh +++ b/Viewer/archive/media/img/my/work/sync-flash.sh @@ -281,21 +281,19 @@ while true ; do echo " (see: "${DIR}"/verification-err.log)" echo while true; do - read -ep "[R]etry, [C]ontinue, or Ctrl-C to cancel: " ACTION + read -ep "[R]etry, [c]ontinue, or Ctrl-C to cancel: " ACTION ACTION=`echo ${ACTION,,} | xargs` - if [[ $ACTION =~ [rc] ]] ; then + if [[ $ACTION =~ [rc] ]] \ + || [ -z $ACTION ] ; then break fi echo "Unknown input: \"$ACTION\"" done - case ${ACTION} in - r) - continue - ;; - c) - break - ;; - esac + if [[ $ACTION == "c" ]] ; then + break + else + continue + fi fi echo "Verifification: done." break