diff options
author | Patrick 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) |
commit | e6b04d9ffd8bef2482ab61957c138ae92527206d (patch) | |
tree | f70b0b04037b1a537331eed3c6d4c397c84de5d3 /src/ob-genchanges.sh | |
parent | 2ddb616b87a2a4684d03c9b54e95f800e73017d9 (diff) |
Protect [ commands from strings beginning with "-"
Diffstat (limited to 'src/ob-genchanges.sh')
-rw-r--r-- | src/ob-genchanges.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ob-genchanges.sh b/src/ob-genchanges.sh index 37f96a9..db76027 100644 --- a/src/ob-genchanges.sh +++ b/src/ob-genchanges.sh @@ -73,9 +73,9 @@ write_files_bin() printf 'Files:\n' >&3 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}" file="${pkg}_${version}_${arch}_${plat}.opk" printf ' %s %s %s\n' \ "$(wc -c "../../${file}" | cut -d ' ' -f 1)" \ |