Fix the setup/teardown urchin test scripts under zsh

The v* glob expansions were failing with an error under zsh, just set
nullglob/NULL_GLOB and make both bash and zsh happier.
master
Emanuele Aina 2013-05-03 17:48:31 +01:00
parent 8486a0da2b
commit 04dba10b9a
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,9 @@
cd ../..
# Back up
type setopt >/dev/null 2>&1 && setopt NULL_GLOB
type shopt >/dev/null 2>&1 && shopt -s nullglob
rm -Rf v* src alias
mkdir src alias
)

View File

@ -4,6 +4,9 @@
cd ../..
# Back up
type setopt >/dev/null 2>&1 && setopt NULL_GLOB
type shopt >/dev/null 2>&1 && shopt -s nullglob
mkdir -p bak
mv v* src alias bak || sleep 0s
)

View File

@ -3,5 +3,8 @@
# Remove temporary files
(
cd ../..
type setopt >/dev/null 2>&1 && setopt NULL_GLOB
type shopt >/dev/null 2>&1 && shopt -s nullglob
rm -fR v* src alias
)