From c921fb703ffa1c50886137f020072ea4dc89690f Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Wed, 7 Apr 2010 17:40:55 +0000 Subject: [PATCH] syntax problems git-svn-id: http://google-refine.googlecode.com/svn/trunk@408 7d457c2a-affb-35e4-300a-418c747d4874 --- gridworks | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gridworks b/gridworks index 10e7c6e9f..96b27eb24 100755 --- a/gridworks +++ b/gridworks @@ -175,11 +175,12 @@ tool_download() { download $URL $FILE fi if [ ! -d "$DIR" ] ; then - if [ `echo $FILE | sed 's|.*.(tar.gz|tgz)$||'` == "" ] ; then + if [ "`echo $FILE | sed 's@.*.(tar.gz|tgz)$@@'`" == "" ] ; then tar xzf $FILE || error "Error while expanding $FILE" - elif [ `echo $FILE | sed 's|.*.zip$||'` == "" ] ; then + fi + if [ "`echo $FILE | sed 's@.*.zip$@@'`" == "" ] ; then check_unzip - $UNZIP $FILE || error "Error while expanding $FILE" + $UNZIP -q $FILE || error "Error while expanding $FILE" fi fi cd ..