From 0e9811d8cd83f4ec768d7dec2e64049d0e8c0621 Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Mon, 26 Nov 2018 14:13:37 +0000 Subject: [PATCH] Update updater.sh Co-Authored-By: earthlng --- updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater.sh b/updater.sh index 875d1db..c403c89 100755 --- a/updater.sh +++ b/updater.sh @@ -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 [[ "$?" != "0" ]]; then + if [ !$? ]; then echo "Profile${REPLY} does not exist!" && exit 1 fi fi