From b23615a2186b6a0ac96abd0389401d946649d520 Mon Sep 17 00:00:00 2001 From: lablans Date: Tue, 7 Jan 2025 12:01:24 +0000 Subject: [PATCH] Refactor/move shifts --- bridgehead | 1 + lib/gitpassword.sh | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bridgehead b/bridgehead index 75d1498..3df3df3 100755 --- a/bridgehead +++ b/bridgehead @@ -168,6 +168,7 @@ case "$ACTION" in ;; gitCredentials) loadVars >&2 + shift 2 exec ./lib/gitpassword.sh $@ ;; *) diff --git a/lib/gitpassword.sh b/lib/gitpassword.sh index 12d0155..c5b3c45 100755 --- a/lib/gitpassword.sh +++ b/lib/gitpassword.sh @@ -4,10 +4,6 @@ SECRETS_FILE=/var/cache/bridgehead/secrets/gitetcbridgehead -# Called from bridgehead, so shift 2 times -shift -shift - case "$1" in erase) rm -f $SECRETS_FILE