From: Phillip Berndt Date: Sun, 20 Jul 2014 11:17:51 +0000 (+0200) Subject: Use same virtual profile detection code in all places X-Git-Tag: 1.0~132 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9b719993939b13dd4c577ca2576d255c83a6cd75;p=deb_pkgs%2Fautorandr.git Use same virtual profile detection code in all places --- diff --git a/autorandr b/autorandr index e507515..19b981c 100755 --- 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