Skip to content
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

Open
lwx2615 opened this issue Apr 17, 2021 · 0 comments
Open

更新bash 5的sh启动脚本 #131

lwx2615 opened this issue Apr 17, 2021 · 0 comments

Comments

@lwx2615
Copy link

lwx2615 commented Apr 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant