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/opkbuild.sh | |
parent | 2ddb616b87a2a4684d03c9b54e95f800e73017d9 (diff) |
Protect [ commands from strings beginning with "-"
Diffstat (limited to 'src/opkbuild.sh')
-rw-r--r-- | src/opkbuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 6f3246b..affa6e2 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -394,11 +394,11 @@ main() setup_package || return 1 - if [ "${opt_build}" = 'source' -o "${opt_build}" = 'full' ]; then + if [ x"${opt_build}" = x'source' -o x"${opt_build}" = x'full' ]; then build_source || return 1 fi - if [ "${opt_build}" != 'source' ]; then + if [ x"${opt_build}" != x'source' ]; then print_arch_stats if "${opt_check_build_deps}"; then if ! "${BINDIR}/ob-checkbuilddeps"; then |