From 24759bcc4ef0e8045626ee4a2d530cc51b1a4a19 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 22:48:06 -0400 Subject: src/substvars.sh: Shift function arguments --- (limited to 'src') diff --git a/src/substvars.sh b/src/substvars.sh index ee845e3..2fe15c1 100644 --- a/src/substvars.sh +++ b/src/substvars.sh @@ -33,6 +33,7 @@ set_substvar() { local name="${1}" local value="${2}" + shift 2 # Validate variable name and convert to lower case. case "${name}" in *[!A-Za-z0-9-]* | '') @@ -53,6 +54,7 @@ set_substvar() substvars() { local string="${1}" + shift 1 local depth= local lhs= local name= -- cgit v0.9.1