summaryrefslogtreecommitdiffstats
path: root/commitpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-01-15 17:57:00 +0100
committerBartłomiej Piotrowski <bpiotrowski@archlinux.org>2018-01-21 14:16:10 +0100
commitaee72cae3231811058d6993d71f97e449e477d8f (patch)
tree2e08fc908cf32bc9b34f1981750a5e10a2c73ce7 /commitpkg.in
parent5ab8f8430a2c865656cd800c03ac21cb17a86d3c (diff)
downloaddevtools-aee72cae3231811058d6993d71f97e449e477d8f.tar.gz
devtools-aee72cae3231811058d6993d71f97e449e477d8f.tar.xz
lib/common.sh: Adjust to work properly with `set -u`
Support for working with `set -u` was broken by 94160d6. Egg on my face; I'm the one who wants `set -u` support, and I'm the author of that commit! libmakepkg does not work with `set -u`; but mostly because of the include guards! So we just need to temporarily disable `set -u` (nounset) while loading libmakepkg. Instead of introducing a new variable, just store the initial nounset status in _INCLUDE_COMMON_SH; rather than a useless fixed-string "true". While we're at it, disable POSIX-mode (just in case we're running as "sh" instead of "bash"), since libmakepkg uses bash-isms that won't parse in POSIX mode.
Diffstat (limited to 'commitpkg.in')
0 files changed, 0 insertions, 0 deletions