summaryrefslogtreecommitdiffstats
path: root/src/ob-buildopk.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-16 16:24:52 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-16 16:24:52 (EDT)
commit2edb92c7d6934afc3a3d6c649b0b565129f57fd2 (patch)
tree7ce9d3b675c8599276742652a1b3a25987e60075 /src/ob-buildopk.sh
parent0b719b7b08cc522108efa0be4d2c4ba675865530 (diff)
ob-buildopk, ob-gencontrol, ob-genchanges: Improve OB_DO_SOURCE checks
This will help enable "set -u".
Diffstat (limited to 'src/ob-buildopk.sh')
-rw-r--r--src/ob-buildopk.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh
index ea250ed..9bba30c 100644
--- a/src/ob-buildopk.sh
+++ b/src/ob-buildopk.sh
@@ -49,7 +49,7 @@ main()
ob_init_package '..' || return 1
printf '2.0\n' >'debian-binary'
- if [ -n "${OB_DO_SOURCE}" ]; then
+ if [ x"${OB_DO_SOURCE:+set}" = x'set' ]; then
build_opk "src-${OPK_SOURCE}" "${OPK_SOURCE_VERSION}" 'src' 'all'
else
for pkg in ${OPK_PACKAGES_REDUCED}; do