Skip to content

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

Description

@lwx2615

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions