From 7462b8e7d1cdac4cd60ce17dbd5961cd0e709820 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 23:27:13 -0400 Subject: src/package/2.sh: Shift function arguments --- diff --git a/src/package/2.sh b/src/package/2.sh index ccccff3..4fa4286 100644 --- a/src/package/2.sh +++ b/src/package/2.sh @@ -24,6 +24,7 @@ package_2_get_build_deps() { local arch="${1}" local plat="${2}" + shift 2 package_2_build_deps='' parse_control "${package_dir}/control" \ @@ -39,6 +40,7 @@ package_2_build_deps_field_cb() { local name="${1}" local value="${2}" + shift 2 name="$(printf '%s\n' "${name}" | tr 'A-Z' 'a-z')" @@ -54,6 +56,7 @@ package_2_set_substvars() { local arch="${1}" local plat="${2}" + shift 2 if [ -f "${package_dir}/substvars" ]; then parse_control "${package_dir}/substvars" \ @@ -70,6 +73,7 @@ package_2_substvar_cb() { local name="${1}" local value="${2}" + shift 2 set_substvar "${name}" "${value}" -- cgit v0.9.1