From 909ef5303dbf7b24fd658673b41520aa17b45481 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 3 Apr 2016 18:06:19 -0400 Subject: [PATCH] prevent pushd/popd from polluting output --- tools/make-assets.sh | 4 ++-- tools/make-chromium.sh | 4 ++-- tools/make-firefox.sh | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/make-assets.sh b/tools/make-assets.sh index 62ddd8a32..fade452dc 100755 --- a/tools/make-assets.sh +++ b/tools/make-assets.sh @@ -7,9 +7,9 @@ DES=$1/assets printf "*** Packaging assets in $DES... " if [ -n "${TRAVIS_TAG}" ]; then - pushd .. + pushd .. > /dev/null git clone https://github.com/uBlockOrigin/uAssets.git - popd + popd > /dev/null fi rm -rf $DES diff --git a/tools/make-chromium.sh b/tools/make-chromium.sh index 57b61d1ff..ead1168f9 100755 --- a/tools/make-chromium.sh +++ b/tools/make-chromium.sh @@ -26,9 +26,9 @@ cp LICENSE.txt $DES/ if [ "$1" = all ]; then echo "*** uBlock0.chromium: Creating package..." - pushd $(dirname $DES/) + pushd $(dirname $DES/) > /dev/null zip uBlock0.chromium.zip -qr $(basename $DES/)/* - popd + popd > /dev/null fi echo "*** uBlock0.chromium: Package done." diff --git a/tools/make-firefox.sh b/tools/make-firefox.sh index e1b4626c7..464af81ad 100755 --- a/tools/make-firefox.sh +++ b/tools/make-firefox.sh @@ -35,10 +35,11 @@ echo "*** uBlock0.firefox: Generating meta..." python tools/make-firefox-meta.py $DES/ "$2" if [ "$1" = all ]; then + set +v echo "*** uBlock0.firefox: Creating package..." - pushd $DES/ + pushd $DES/ > /dev/null zip ../uBlock0.firefox.xpi -qr * - popd + popd > /dev/null fi echo "*** uBlock0.firefox: Package done."