summaryrefslogtreecommitdiff
path: root/src/lib/conf.sh.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 22:47:08 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-04 14:27:15 -0400
commitbb97cfc85d9b711b517985abbd9832bff9c4b37a (patch)
tree20d328819279d96e987d5212ea39a97604b9e2c2 /src/lib/conf.sh.in
parentb245def72cd67e6475651b12e3313d8011b128bc (diff)
shellcheck directives
Diffstat (limited to 'src/lib/conf.sh.in')
-rw-r--r--src/lib/conf.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/conf.sh.in b/src/lib/conf.sh.in
index 30469ca..095c4f1 100644
--- a/src/lib/conf.sh.in
+++ b/src/lib/conf.sh.in
@@ -199,6 +199,7 @@ unset_PKGBUILD() {
# For each arg, `unset -v` all variables matching ${arg} and ${arg}_*
local v
for v in "$@"; do
+ # shellcheck disable=228
unset -v "$v" $(declare -p|sed -rn "s/^declare -\S+ (${v}_[a-zA-Z0-9_]*)=.*/\1/p")
done
}
@@ -237,6 +238,7 @@ unset_PKGBUILD() {
load_PKGBUILD() {
local file=${1:-./PKGBUILD}
unset_PKGBUILD
+ # shellcheck disable=2034
CARCH="$(get_var makepkg CARCH "`uname -m`")"
. "$file"
pkgbase=${pkgbase:-${pkgname[0]}}