From 48e7349ef76a7719943e6d09ceaee60101e1218e Mon Sep 17 00:00:00 2001 From: Pat Johnson Date: Mon, 26 Nov 2018 14:01:53 +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 c5d99b2..0ebf41d 100755 --- a/updater.sh +++ b/updater.sh @@ -138,7 +138,7 @@ readIniFile () { # expects one argument: absolute path of profiles.ini declare -r inifile="$1" declare -r tfile=$(mktemp) - if [[ $(grep '^\[Profile' "$inifile" | wc -l) == "1" ]]; then ### only 1 profile found + if [ $(grep '^\[Profile' "$inifile" | wc -l) == "1" ]; then ### only 1 profile found grep '^\[Profile' -A 4 "$inifile" | grep -v '^\[Profile' > $tfile else grep -E -v '^\[General\]|^StartWithLastProfile=|^IsRelative=' "$inifile"