]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Use same virtual profile detection code in all places
authorPhillip Berndt <phillip.berndt@googlemail.com>
Sun, 20 Jul 2014 11:17:51 +0000 (13:17 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Sun, 20 Jul 2014 11:17:51 +0000 (13:17 +0200)
autorandr

index e507515af0e5cf8658f46c38cf7e2b11bada3aef..19b981c7e08fdb3b00bfdb56bbb9b7f0d6d7449c 100755 (executable)
--- a/autorandr
+++ b/autorandr
@@ -401,7 +401,7 @@ done
 CURRENT_SETUP="$(setup_fp)"
 
 if [ -n "$SAVE_PROFILE" ]; then
-       if echo "$RESERVED_PROFILE_NAMES" | grep -q " $SAVE_PROFILE     "; then
+       if echo "$RESERVED_PROFILE_NAMES" | grep -q "^ $SAVE_PROFILE "; then
                echo "Cannot save current configuration as profile '${SAVE_PROFILE}': This configuration name is a reserved virtual configuration."
                exit 1
        fi