From 7808518432f7bae3b5153e3f1e748ca32d173c82 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 6 Jul 2022 09:17:45 +0100 Subject: [PATCH] config: working directory tweaks --- .config/shell/server | 2 +- .local/bin/scripts/git-get | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/shell/server b/.config/shell/server index 7e93091..a1bc45d 100644 --- a/.config/shell/server +++ b/.config/shell/server @@ -32,7 +32,7 @@ stack() { #export GITLAB_CI="true" echo Selected "$_cluster_name" with IP "$_cluster_ip" echo "$_cluster_name" >"$_stackspin_cluster_cache" - builtin cd "$STACKSPIN" + test "$PWD" = "$HOME" && builtin cd "$STACKSPIN" ;; (sso) builtin cd "$STACKSPIN" "$0" exec dashboard --container backend -- flask "$@";; diff --git a/.local/bin/scripts/git-get b/.local/bin/scripts/git-get index f01e97e..bd10175 100755 --- a/.local/bin/scripts/git-get +++ b/.local/bin/scripts/git-get @@ -16,3 +16,4 @@ esac shift $(expr $# \& $# \< 3 \| 3) git clone $remote "$@" $dir --recurse-submodules cd "${dir:-${4:-$2}}" +exec