aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-11-02 10:40:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-11-02 10:40:02 -0300
commit1eee787c52d6d6ec61a76714486978206e1964b6 (patch)
treefadaa87c7f8b78b22505aa57569cd5e1c47aca3d
parent845d35ab6e8e3157a68de46cdb41a2a1e75fa596 (diff)
downloadprofile-1eee787c52d6d6ec61a76714486978206e1964b6.tar.gz
profile-1eee787c52d6d6ec61a76714486978206e1964b6.tar.bz2
Fix: profile: only cd to STARTUP_FOLDER if it's set
-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