]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Fixed integer test expressions
authorPhillip Berndt <phillip.berndt@googlemail.com>
Sun, 20 Jul 2014 11:21:47 +0000 (13:21 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Sun, 20 Jul 2014 11:21:47 +0000 (13:21 +0200)
autorandr

index 9cb87f7219521a70643bd99d8b510eaf77d89ab8..143a04450babaf8d7bbe25b4ceb77d49ca9069ed 100755 (executable)
--- 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"