refactor - consolidate into main function 2/n

ADP-216_sops_automation
LeeW 10 months ago
parent 629579eaf3
commit 9dbdb7d365

@ -114,6 +114,10 @@ fn_sops_updatekeys_and_verify(){
}
function main(){
if [[ ! -n "${@}" ]]; then
# if empty args, remove
shift
fi
# "anchor" for actions relevant to this script
repo_root="$(realpath $(dirname "${BASH_SOURCE[0]}")/..)"
# OPTIONS: ARGPARSING and VALIDATION
@ -209,5 +213,6 @@ function main(){
fi
}
main "${@}"
# pass-through, set default value
main "${@-}"
exit

Loading…
Cancel
Save