summaryrefslogtreecommitdiff
path: root/build_kzip.bash
diff options
context:
space:
mode:
author Brian Egizi <begizi@google.com> 2021-05-21 00:50:21 +0000
committer Brian Egizi <begizi@google.com> 2021-05-21 00:51:44 +0000
commit2aded7dd552ee71455167287e2fec1d46023c3ca (patch)
tree0ba6ade4242c50d43321fde0319ed0c597aa417e /build_kzip.bash
parentc3a800f61133e785f945064ffa93b2553f40be35 (diff)
Fix unbound variable in kzip script
Change-Id: Id7f81677389cb853da064a43f1d5d54b2271f0c0
Diffstat (limited to 'build_kzip.bash')
-rwxr-xr-xbuild_kzip.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_kzip.bash b/build_kzip.bash
index 786ff7656..56550677f 100755
--- a/build_kzip.bash
+++ b/build_kzip.bash
@@ -18,7 +18,7 @@
# If the SUPERPROJECT_REVISION is defined as a sha, use this as the default value if no
# SUPERPROJECT_SHA is specified.
-if [[ $SUPERPROJECT_REVISION =~ [0-9a-f]{40} ]]; then
+if [[ ${SUPERPROJECT_REVISION:-} =~ [0-9a-f]{40} ]]; then
: ${KZIP_NAME:=${SUPERPROJECT_REVISION:-}}
fi