Fix unzip module

This commit is contained in:
Teddysun 2014-05-10 17:28:05 +08:00
parent 9dccedc974
commit 92f24adfe6

View File

@ -89,14 +89,15 @@ function download_files(){
echo "Failed to download node-${NODEJS_VER}.tar.gz" echo "Failed to download node-${NODEJS_VER}.tar.gz"
exit 1 exit 1
fi fi
tar -zxf node-${NODEJS_VER}.tar.gz fi
if [ $? -eq 0 ];then # Untar Nodejs file
cd $cur_dir/node-${NODEJS_VER}/ tar -zxf node-${NODEJS_VER}.tar.gz
else if [ $? -eq 0 ];then
echo "" cd $cur_dir/node-${NODEJS_VER}/
echo "Untar Nodejs failed! Please visit http://teddysun.com/355.html and contact." else
exit 1 echo ""
fi echo "Untar Nodejs failed! Please visit http://teddysun.com/355.html and contact."
exit 1
fi fi
} }