mirror of
https://github.com/samply/bridgehead.git
synced 2025-07-07 00:10:20 +02:00
Refactor/move shifts
This commit is contained in:
@ -168,6 +168,7 @@ case "$ACTION" in
|
|||||||
;;
|
;;
|
||||||
gitCredentials)
|
gitCredentials)
|
||||||
loadVars >&2
|
loadVars >&2
|
||||||
|
shift 2
|
||||||
exec ./lib/gitpassword.sh $@
|
exec ./lib/gitpassword.sh $@
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -4,10 +4,6 @@
|
|||||||
|
|
||||||
SECRETS_FILE=/var/cache/bridgehead/secrets/gitetcbridgehead
|
SECRETS_FILE=/var/cache/bridgehead/secrets/gitetcbridgehead
|
||||||
|
|
||||||
# Called from bridgehead, so shift 2 times
|
|
||||||
shift
|
|
||||||
shift
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
erase)
|
erase)
|
||||||
rm -f $SECRETS_FILE
|
rm -f $SECRETS_FILE
|
||||||
|
Reference in New Issue
Block a user