From b13f9c520c7c869977449fd59ace156495a66536 Mon Sep 17 00:00:00 2001 From: Sasha Smundak Date: Thu, 15 Aug 2019 11:10:26 -0700 Subject: [PATCH] Handle the case when OUT_DIR is not set. Bug: 137977523 Test: manual Change-Id: I6a4bcc5099223f28bce72bf10004c01327598fc7 --- build_kzip.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')