-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更新bash 5的sh启动脚本 #131
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bash --version
GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
之前bash 4的启动脚本跑起来没问题,在5上一直报错:错误的文件描述符 [: unexpected operator
这是两个错误,第一个将200 改成 9
第二个将== 改成 =
if [ "$1" == "stop" ]; then
stop
elif [ "$1" == "start" ]; then
start
elif [ "$1" == "restart" ]; then
restart
else
common_process $*
fi
The text was updated successfully, but these errors were encountered: