config: working directory tweaks

This commit is contained in:
xeruf 2022-07-06 09:17:45 +01:00
parent cc59e44915
commit 7808518432
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ stack() {
#export GITLAB_CI="true" #export GITLAB_CI="true"
echo Selected "$_cluster_name" with IP "$_cluster_ip" echo Selected "$_cluster_name" with IP "$_cluster_ip"
echo "$_cluster_name" >"$_stackspin_cluster_cache" echo "$_cluster_name" >"$_stackspin_cluster_cache"
builtin cd "$STACKSPIN" test "$PWD" = "$HOME" && builtin cd "$STACKSPIN"
;; ;;
(sso) builtin cd "$STACKSPIN" (sso) builtin cd "$STACKSPIN"
"$0" exec dashboard --container backend -- flask "$@";; "$0" exec dashboard --container backend -- flask "$@";;

View File

@ -16,3 +16,4 @@ esac
shift $(expr $# \& $# \< 3 \| 3) shift $(expr $# \& $# \< 3 \| 3)
git clone $remote "$@" $dir --recurse-submodules git clone $remote "$@" $dir --recurse-submodules
cd "${dir:-${4:-$2}}" cd "${dir:-${4:-$2}}"
exec