From 9b719993939b13dd4c577ca2576d255c83a6cd75 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Sun, 20 Jul 2014 13:17:51 +0200 Subject: [PATCH] Use same virtual profile detection code in all places --- autorandr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5