Skip to content

Commit

Permalink
fix(start): exit if node cmd is not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed Oct 24, 2018
1 parent fd90241 commit bb714a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/proxy/so.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ BIN_DIR=$(pwd)
echo "BIN_DIR: ${BIN_DIR}"

NODE_PATH=$(node -p process.execPath)
echo "use node:$NODE_PATH"

if [ -e "${NODE_PATH}" ]
then
echo "use node:${NODE_PATH}"
else
echo "node cmd is not found"
exit 1
fi

ln -sf $NODE_PATH ./TSW
chmod +x ./TSW

Expand Down

0 comments on commit bb714a8

Please sign in to comment.