From 37d3710574d03c479f295b03c4a9119762174f0a Mon Sep 17 00:00:00 2001 From: Felix Eckhofer Date: Tue, 27 Jun 2017 19:21:01 +0200 Subject: [PATCH] Fix regression when JAR_DIR is a relative path (#5815) --- bin/jsshrink.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/jsshrink.sh b/bin/jsshrink.sh index 0484aa4e5..d8f0fa528 100755 --- a/bin/jsshrink.sh +++ b/bin/jsshrink.sh @@ -37,7 +37,7 @@ if [ ! -r "$JAR_DIR/compiler.jar" ]; then echo "Please download $CLOSURE_COMPILER_URL and extract compiler.jar to $JAR_DIR/." exit 1 fi - (cd $JAR_DIR && unzip -p "/tmp/$$.zip" "*.jar" > "$JAR_DIR/compiler.jar") + unzip -p "/tmp/$$.zip" "*.jar" > "$JAR_DIR/compiler.jar" rm -f "/tmp/$$.zip" fi