以「 sh /etc/connect.sh 」方式运行,提示:/etc/connect.sh: line 48: syntax error: unexpected end of file (expecting "then") 直接「./connect.sh 」,则提示:-ash: ./connect.sh: not found
sh: bad number Please use root account or sudo in order to connect
再请求指点。
AntonChen
2014-10-03 23:16:19 +08:00
ROOT_UID=0 if [ "$UID" -eq "$ROOT_UID" ] then echo "User has root privileges, will continue..." else echo "Please use root account or sudo in order to connect" exit 1 fi