From 580d3a81db17e4e1cb924b7069122c77dccba270 Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 13 Jan 2015 09:28:53 -0500 Subject: [PATCH] build package only if "all" arg specified --- tools/make-firefox.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/make-firefox.sh b/tools/make-firefox.sh index bebca6f23..52d5c9d0a 100755 --- a/tools/make-firefox.sh +++ b/tools/make-firefox.sh @@ -28,9 +28,12 @@ cp LICENSE.txt $DES/ echo "*** uBlock_xpi: Generating meta..." python tools/make-firefox-meta.py $DES/ -echo "*** uBlock_xpi: Creating package..." -pushd $DES/ -zip ../uBlock.firefox.xpi -qr * -popd + +if [ "$1" = all ]; then + echo "*** uBlock_xpi: Creating package..." + pushd $DES/ + zip ../uBlock.firefox.xpi -qr * + popd +fi echo "*** uBlock_xpi: Package done."