Fix unzip module

This commit is contained in:
Teddysun 2014-05-10 17:27:56 +08:00
parent f41175b1ca
commit 9dccedc974

View File

@ -87,14 +87,14 @@ function download_files(){
echo "Failed to download shadowsocks-libev.zip" echo "Failed to download shadowsocks-libev.zip"
exit 1 exit 1
fi fi
unzip shadowsocks-libev.zip fi
if [ $? -eq 0 ];then unzip shadowsocks-libev.zip
cd $cur_dir/shadowsocks-libev-master/ if [ $? -eq 0 ];then
else cd $cur_dir/shadowsocks-libev-master/
echo "" else
echo "Unzip shadowsocks-libev failed! Please visit http://teddysun.com/357.html and contact." echo ""
exit 1 echo "Unzip shadowsocks-libev failed! Please visit http://teddysun.com/357.html and contact."
fi exit 1
fi fi
} }