quote some test args

This commit is contained in:
Jens Petersen 2008-11-25 15:40:11 +00:00
parent b17255a641
commit 9c2030439c

View File

@ -2,7 +2,7 @@
set -e
[ $# -ne 1 -o ! -r $1 ] && echo "Usage: $0 hackage-version.tar.gz" && exit 1
[ $# -ne 1 -o ! -r "$1" ] && echo "Usage: $0 hackage-version.tar.gz" && exit 1
HACKAGE=$1
@ -32,7 +32,7 @@ fi
SPECFILE=$PREFIX$NAME.spec
[ -r $SPECFILE ] && echo "$SPECFILE already exists!" && exit 1
[ -r "$SPECFILE" ] && echo "$SPECFILE already exists!" && exit 1
cp /usr/share/ghc/cabal-${HAS_BIN:+bin}${HAS_LIB:+lib}-template.spec.in $SPECFILE