fixing untar issue

git-svn-id: http://google-refine.googlecode.com/svn/trunk@410 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-04-07 18:34:10 +00:00
parent 302c27687c
commit 4626f88836

View File

@ -175,7 +175,7 @@ tool_download() {
download $URL $FILE download $URL $FILE
fi fi
if [ ! -d "$DIR" ] ; then if [ ! -d "$DIR" ] ; then
if [ "`echo $FILE | sed 's@.*.(tar.gz|tgz)$@@'`" == "" ] ; then if [ "`echo $FILE | sed 's@.*.tar.gz$@@'`" == "" ] ; then
tar xzf $FILE || error "Error while expanding $FILE" tar xzf $FILE || error "Error while expanding $FILE"
fi fi
if [ "`echo $FILE | sed 's@.*.zip$@@'`" == "" ] ; then if [ "`echo $FILE | sed 's@.*.zip$@@'`" == "" ] ; then