From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- bin/jsshrink.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/bin/jsshrink.sh b/bin/jsshrink.sh index f7c7b22..0890a5c 100755 --- a/bin/jsshrink.sh +++ b/bin/jsshrink.sh @@ -9,7 +9,9 @@ do_shrink() { rm -f "$2" - java -jar $JAR_DIR/compiler.jar --compilation_level=SIMPLE_OPTIMIZATIONS --js="$1" --js_output_file="$2" --language_in="$3" + # copy the first comment block with license information for LibreJS + grep -q '@lic' $1 && sed -n '/\/\*/,/\*\// { p; /\*\//q; }' $1 > $2 + java -jar $JAR_DIR/compiler.jar --compilation_level=SIMPLE_OPTIMIZATIONS --js="$1" --language_in="$3" >> $2 } if [ ! -d "$JS_DIR" ]; then -- Gitblit v1.9.1