From 2f401f4bc835d1f5ec856d9d55e68b74ca51eebb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 10 Jan 2020 20:37:44 +0100 Subject: helper scripts: optimize argument shifts --- vault.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vault.sh') 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%%/*} -- cgit v1.2.3