Fix install function

This commit is contained in:
Teddysun 2014-05-11 23:00:27 +08:00
parent a3d4e24989
commit aa53cd0474

View File

@ -138,10 +138,10 @@ function install(){
./configure ./configure
make && make install make && make install
fi fi
cd $cur_dir
# Install shadowsocks-Nodejs # Install shadowsocks-Nodejs
which npm > /dev/null 2>&1 which npm > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
cd $cur_dir
npm install -g shadowsocks npm install -g shadowsocks
else else
echo "" echo ""