Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 0819701

Browse files
committed
scripts: ansible-vault: move vault file arg after subcommand
Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
1 parent 33087dd commit 0819701

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/ansible-vault

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ set -eu
44

55
basedir=$(dirname $0)
66
vault_password_file=${ANSIBLE_VAULT_PASSWORD_FILE:-"$basedir/vault-passwd"}
7-
exec ansible-vault --vault-password-file=$vault_password_file "$@"
7+
action=$1
8+
shift
9+
exec ansible-vault $action --vault-pass-file=$vault_password_file "$@"

0 commit comments

Comments
 (0)