From 5be6e55bf8e6812b77b0133d20c00abe401f3361 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 8 Sep 2023 13:13:16 -0700 Subject: [PATCH] mkdir before calling unzip Busybox's unzip implementation doesn't create directories passed with `-d`, and instead assumes they exist and errors if they don't. Closes #19461. PiperOrigin-RevId: 563833721 Change-Id: I5b67dcf8ef17d7b1fd080a54949b0a4001860330 --- src/package-bazel.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/package-bazel.sh b/src/package-bazel.sh index b88f2570f1ee25..5b1441fa880d45 100755 --- a/src/package-bazel.sh +++ b/src/package-bazel.sh @@ -47,6 +47,7 @@ cp $* ${PACKAGE_DIR} if [[ $DEV_BUILD -eq 0 ]]; then # Unpack the deploy jar for postprocessing and for "re-compressing" to save # ~10% of final binary size. + mkdir -p $RECOMP unzip -q -d $RECOMP ${DEPLOY_JAR} cd $RECOMP