cleanup: build-unit-test-docker.sh: use double brackets instead of single
[[ ... ]] reduces errors as no pathname expansion or word splitting
takes place between [[ and ]]. In addition, [[ ... ]] allows for
regular expression matching while [ ... ] does not.
Change-Id: Id68819d850fe9053f41cf7ef347f0e1a55b6d129
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index 9a1142e..105bc21 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -69,7 +69,7 @@
grep "refs/heads/$BRANCH" | awk '{ print $1 }' || true)
# If specific branch is not found then try master
- if [ ! -n "$tip" ]; then
+ if [[ ! -n "$tip" ]]; then
tip=$(git ls-remote --heads "https://github.com/openbmc/${package}" |
grep "refs/heads/master" | awk '{ print $1 }')
fi