From 9c2030439c9a188f056bb5523c8ed871d7f9f794 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 25 Nov 2008 15:40:11 +0000 Subject: [PATCH] quote some test args --- cabal2spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cabal2spec b/cabal2spec index d16978b..ab68656 100755 --- a/cabal2spec +++ b/cabal2spec @@ -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