From 91501a414a1af3edd4522895870999060ee5e6ff Mon Sep 17 00:00:00 2001 From: overdodactyl Date: Sat, 24 Nov 2018 20:49:54 -0700 Subject: [PATCH] updater.sh simplify single profile check --- updater.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/updater.sh b/updater.sh index 6129472..4f9a195 100755 --- a/updater.sh +++ b/updater.sh @@ -59,11 +59,9 @@ set_wd () { exit 1 fi numdirs=("$firefox_dir"/*) - numdirs=${#numdirs[@]} - if [[ $numdirs == "1" ]]; then + if [[ ${#numdirs[@]} == "1" ]]; then ff_profile=$(ls -d "$firefox_dir"*) else - echo "wrong" echo -e ${GREEN}"The following profiles were found:\n"${ORANGE} ls -d "$firefox_dir"* echo -e ${RED}"\nWhich profile would you like to update?"${NC}