X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr;h=9cb87f7219521a70643bd99d8b510eaf77d89ab8;hb=d86adf9a255047d6de4ed0cda11259f637d04162;hp=22e61ed0aa2b887b471d455838826280a8e14a51;hpb=899c841c1174a0bf522e8b8b1795381584e6010f;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr b/autorandr index 22e61ed..9cb87f7 100755 --- a/autorandr +++ b/autorandr @@ -406,7 +406,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