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-buildenv.sh | |
parent | 2ddb616b87a2a4684d03c9b54e95f800e73017d9 (diff) |
Protect [ commands from strings beginning with "-"
Diffstat (limited to 'src/ob-buildenv.sh')
-rw-r--r-- | src/ob-buildenv.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index e224c54..dd16146 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -43,7 +43,7 @@ setup_toolchain() { # This check is done to allow at least native building on unsupported OSes. # It may be removed in the future. - if [ "${OPK_BUILD_ARCH}" != "${OPK_HOST_ARCH}" ]; then + if [ x"${OPK_BUILD_ARCH}" != x"${OPK_HOST_ARCH}" ]; then tool_prefix="${OPK_HOST_ARCH}-" else tool_prefix='' |