mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
prevent pushd/popd from polluting output
This commit is contained in:
parent
a9d36027e1
commit
909ef5303d
3 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue