1.syntax error near unexpected token `then'
if后要有空格,[] 中括号的开头和结尾要有空格! [ $1-eq"root" ]中括号中的$1和-eq和"root"之间没有空格!
1.syntax error near unexpected token `then'
if后要有空格,[] 中括号的开头和结尾要有空格! [ $1-eq"root" ]中括号中的$1和-eq和"root"之间没有空格!
转载于:https://www.cnblogs.com/tangnie/p/3148584.html