]> gitweb.fluxo.info Git - rhatto/dotfiles/profile.git/commitdiff
Fix: profile: rollback: always cd to STARTUP_FOLDER
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 2 Nov 2024 14:13:24 +0000 (11:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 2 Nov 2024 14:13:24 +0000 (11:13 -0300)
profile.dot.link

index 487e0ece0f1c78345e6b7e77bb9eee211b92f2e5..a8acc66bdf73eea0d9dc6417b5d6f3531a605987 100644 (file)
@@ -457,10 +457,13 @@ if [ -z "$STARTUP_FOLDER" ] && [ -f "/srv/shared/kvmxfile" ]; then
   STARTUP_FOLDER="/srv/shared"
 fi
 
+# Only change to the startup folder if it's set
+#if [ ! -z "$STARTUP_FOLDER" ]; then
+#  cd $STARTUP_FOLDER
+#fi
+
 # Make sure we start at the startup folder, defaulting to home
-if [ ! -z "$STARTUP_FOLDER" ]; then
-  cd $STARTUP_FOLDER
-fi
+cd $STARTUP_FOLDER
 
 # Include other profiles
 if [ -d "$HOME/.profile.d" ]; then