diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-11-02 10:40:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-11-02 10:40:02 -0300 |
commit | 1eee787c52d6d6ec61a76714486978206e1964b6 (patch) | |
tree | fadaa87c7f8b78b22505aa57569cd5e1c47aca3d | |
parent | 845d35ab6e8e3157a68de46cdb41a2a1e75fa596 (diff) | |
download | profile-1eee787c52d6d6ec61a76714486978206e1964b6.tar.gz profile-1eee787c52d6d6ec61a76714486978206e1964b6.tar.bz2 |
Fix: profile: only cd to STARTUP_FOLDER if it's set
-rw-r--r-- | profile.dot.link | 4 |
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 |