avoid loading of nonexisting profile

This commit is contained in:
Stefan Tomanek 2010-11-08 21:51:46 +01:00
parent 08127f2153
commit f693721a70

View File

@ -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