summaryrefslogtreecommitdiff
path: root/build_kzip.bash
diff options
context:
space:
mode:
author Sasha Smundak <asmundak@google.com> 2019-08-15 11:10:26 -0700
committer Sasha Smundak <asmundak@google.com> 2019-08-15 11:13:01 -0700
commitb13f9c520c7c869977449fd59ace156495a66536 (patch)
treec16b0e86f7017ffff2d14fec8346234c49e98028 /build_kzip.bash
parentda6a7f458b34fe4f3eecce8498cdb134b1fd8cc0 (diff)
Handle the case when OUT_DIR is not set.
Bug: 137977523 Test: manual Change-Id: I6a4bcc5099223f28bce72bf10004c01327598fc7
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 62ea7a23d..5364e7f5d 100755
--- a/build_kzip.bash
+++ b/build_kzip.bash
@@ -22,4 +22,4 @@ declare -r kzip_count=$(find $OUT_DIR -name '*.kzip' | wc -l)
# Pack
# TODO(asmundak): this should be done by soong.
declare -r allkzip=all.kzip
-"$OUT_DIR/soong/host/linux-x86/bin/merge_zips" "$DIST_DIR/$allkzip" @<(find $OUT_DIR -name '*.kzip')
+"${OUT_DIR:-out}/soong/host/linux-x86/bin/merge_zips" "$DIST_DIR/$allkzip" @<(find $OUT_DIR -name '*.kzip')