From b4e56eb70ab92c2936bb759c9319645ab55835fe Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Sun, 20 Jul 2014 13:21:47 +0200 Subject: [PATCH] Fixed integer test expressions --- autorandr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autorandr b/autorandr index 9cb87f7..143a044 100755 --- a/autorandr +++ b/autorandr @@ -308,7 +308,7 @@ load() { local CONF="$PROFILES/$PROFILE/config" local IS_VIRTUAL_PROFILE=`echo "$RESERVED_PROFILE_NAMES" | grep -c "^ $PROFILE "` - if [ ! -f "$CONF" -a $IS_VIRTUAL_PROFILE == 0 ]; then + if [ ! -f "$CONF" -a $IS_VIRTUAL_PROFILE -eq 0 ]; then echo " -> Error: Profile '$PROFILE' does not exist." >&2 return fi @@ -322,7 +322,7 @@ load() { if [ -f "$CONF" ]; then echo " -> loading profile $PROFILE" - if [ $IS_VIRTUAL_PROFILE != 0 ]; then + if [ $IS_VIRTUAL_PROFILE -ne 0 ]; then echo " -> Warning: Existing profile overrides virtual profile with same name" >&2 fi $LOAD_METHOD "$CONF" -- 2.39.5