summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2015-11-12 18:25:58 +0100
committerSebastien Bacher <seb128@ubuntu.com>2015-11-12 18:25:58 +0100
commitd433ea23cd306df3a6279b6f35888011c1eea977 (patch)
tree83063e4108759c77a678875661aa4956608d5443
parent6053fd53588bd0cf8bc03756a5bd76f53eb38281 (diff)
downloadlightdm-d433ea23cd306df3a6279b6f35888011c1eea977.tar.gz
[guest] Don't error out if there is no prefs.sh configuration
-rw-r--r--debian/guest-session-setup.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/guest-session-setup.sh b/debian/guest-session-setup.sh
index 9e1300db..46cee493 100644
--- a/debian/guest-session-setup.sh
+++ b/debian/guest-session-setup.sh
@@ -31,4 +31,6 @@ echo "hideRestartNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper
#/bin/echo -e ${dmrc} > ${HOME}/.dmrc
# set possible local guest session preferences
-[ -f ${site_gs}/prefs.sh ] && . ${site_gs}/prefs.sh
+if [ -f ${site_gs}/prefs.sh ]; then
+ . ${site_gs}/prefs.sh
+fi