From f693721a70e9bb0aa891110a77a6f0ee64edcd19 Mon Sep 17 00:00:00 2001 From: Stefan Tomanek Date: Mon, 8 Nov 2010 21:51:46 +0100 Subject: [PATCH] avoid loading of nonexisting profile --- autorandr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorandr b/autorandr index 092b9d1..abc33e0 100755 --- a/autorandr +++ b/autorandr @@ -97,7 +97,7 @@ blocked() { load() { local PROFILE="$1" - if [ "$CHANGE_PROFILE" -eq 1 ]; then + if [ "$CHANGE_PROFILE" -eq 1 ] && [ -e "$PROFILES/$PROFILE/config" ] ; then echo " -> loading profile $PROFILE" sed 's!^!--!' "$PROFILES/$PROFILE/config" | xargs xrandr -- 2.39.5