summaryrefslogtreecommitdiff
path: root/vault.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-01-10 20:37:44 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-01-10 20:37:55 +0100
commit2f401f4bc835d1f5ec856d9d55e68b74ca51eebb (patch)
treecbd1aa5194f426cf8e5d2524960b3188b3a396b8 /vault.sh
parentadd mac address parameter for vm network (diff)
helper scripts: optimize argument shifts
Diffstat (limited to 'vault.sh')
-rwxr-xr-xvault.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/vault.sh b/vault.sh
index 1dd48155..e44bff92 100755
--- a/vault.sh
+++ b/vault.sh
@@ -5,9 +5,8 @@ if [ -z "$1" ] || [ -z "$2" ]; then
exit 1
fi
command="$1"
-shift
-file="$1"
-shift
+file="$2"
+shift 2
file=$(realpath --relative-to "${BASH_SOURCE%/*}" "$file")
env_group=${file%%/*}