aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profile.dot.link4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile.dot.link b/profile.dot.link
index e559233..487e0ec 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -458,7 +458,9 @@ if [ -z "$STARTUP_FOLDER" ] && [ -f "/srv/shared/kvmxfile" ]; then
fi
# Make sure we start at the startup folder, defaulting to home
-cd $STARTUP_FOLDER
+if [ ! -z "$STARTUP_FOLDER" ]; then
+ cd $STARTUP_FOLDER
+fi
# Include other profiles
if [ -d "$HOME/.profile.d" ]; then