From ab74bdec6c74ac1eaff51e2233422d5b2855e1b6 Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 30 Aug 2021 12:18:09 -0500 Subject: [PATCH] downgrade chromium: use while loop for version selection --- apps/Downgrade Chromium/install-32 | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/apps/Downgrade Chromium/install-32 b/apps/Downgrade Chromium/install-32 index 5a0fca1..4c138b6 100755 --- a/apps/Downgrade Chromium/install-32 +++ b/apps/Downgrade Chromium/install-32 @@ -21,16 +21,18 @@ VERSIONS="65 if [ -z "$1" ];then LIST="$(echo "$VERSIONS" | sed 's/^/false\nChromium version /g')" - output="$(echo "$LIST" | yad --center --title="Choose Chromium version" --height=290 --no-headers \ - --text=" Which Chromium version to install today? " \ - --radiolist --list --column=Tick --column=version --separator='\n' --print-column=2 \ - --window-icon="$(dirname "$0")/icon-64.png" \ - --button=!${DIRECTORY}/icons/check.png!OK:0 - )" - button=$? - - [ $button != 0 ] && error "exited chromium version selection list" - + output='' + while [ -z "$output" ];do + output="$(echo "$LIST" | yad --center --title="Choose Chromium version" --height=290 --no-headers \ + --text=" Which Chromium version to install today? " \ + --radiolist --list --column=Tick --column=version --separator='\n' --print-column=2 \ + --window-icon="$(dirname "$0")/icon-64.png" \ + --button=!${DIRECTORY}/icons/check.png!OK:0 + )" + button=$? + + [ $button != 0 ] && error "exited chromium version selection list" + done #get just chromium version NUMBER output="$(echo "$output" | awk '{print $3}')" else