From b66cd2ca0f40ea754b1f2e5259c24686ceacc9bb 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 bebca6f..52d5c9d 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."