From 74e753d0c5ee9aabc067a8ecc50c5aa1171bea59 Mon Sep 17 00:00:00 2001 From: Pat Johnson Date: Sat, 1 Dec 2018 07:18:38 -0700 Subject: [PATCH] fix profile check (#564) --- updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updater.sh b/updater.sh index 0232461..8a3ac22 100755 --- a/updater.sh +++ b/updater.sh @@ -2,7 +2,7 @@ ## ghacks-user.js updater for macOS and Linux -## version: 2.2 +## version: 2.3 ## Author: Pat Johnson (@overdodactyl) ## Additional contributors: @earthlng, @ema-pe, @claustromaniac @@ -147,7 +147,7 @@ readIniFile () { # expects one argument: absolute path of profiles.ini echo -e "\n" if [[ $REPLY =~ ^(0|[1-9][0-9]*)$ ]]; then grep '^\[Profile'${REPLY} -A 4 "$inifile" | grep -v '^\[Profile'${REPLY} > $tfile - if [ !$? ]; then + if [[ "$?" != "0" ]]; then echo "Profile${REPLY} does not exist!" && exit 1 fi else