summaryrefslogtreecommitdiffstats
path: root/src/ob-buildopk.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 17:15:03 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 17:15:03 (EDT)
commite6b04d9ffd8bef2482ab61957c138ae92527206d (patch)
treef70b0b04037b1a537331eed3c6d4c397c84de5d3 /src/ob-buildopk.sh
parent2ddb616b87a2a4684d03c9b54e95f800e73017d9 (diff)
Protect [ commands from strings beginning with "-"
Diffstat (limited to 'src/ob-buildopk.sh')
-rw-r--r--src/ob-buildopk.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh
index 670740f..cfe7585 100644
--- a/src/ob-buildopk.sh
+++ b/src/ob-buildopk.sh
@@ -54,9 +54,9 @@ main()
else
for pkg in ${OPK_PACKAGES_REDUCED}; do
arch="$(ob_get_binary_parameter "${pkg}" 'Architecture')"
- [ "${arch}" != 'all' ] && arch="${OPK_HOST_ARCH}"
+ [ x"${arch}" != x'all' ] && arch="${OPK_HOST_ARCH}"
plat="$(ob_get_binary_parameter "${pkg}" 'Platform')"
- [ "${plat}" != 'all' ] && plat="${OPK_HOST_PLAT}"
+ [ x"${plat}" != x'all' ] && plat="${OPK_HOST_PLAT}"
build_opk "${pkg}" "${OPK_BINARY_VERSION}" "${arch}" "${plat}"
done
fi