syntax problems

git-svn-id: http://google-refine.googlecode.com/svn/trunk@408 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-04-07 17:40:55 +00:00
parent 6674b69773
commit c921fb703f

View File

@ -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 ..