fix: 解决脚本参数错误问题
This commit is contained in:
@@ -14,7 +14,7 @@ set -euo pipefail
|
||||
LOG_I "** Processing entry.sh **"
|
||||
|
||||
# 优先处理'-'开始的版本信息、帮助信息显示命令,如果是该类命令,处理后退出容器
|
||||
[[ "${1:0:1}" == '-' ]] && print_command_help
|
||||
[[ "${1:0:1}" == '-' ]] && set -- "${APP_EXEC:-/bin/bash}" "$@" && print_command_help "$@"
|
||||
|
||||
# 处理 root 用户**且**使用默认启动脚本时的初始化
|
||||
if [[ "$(id -u)" == '0' ]] && [[ "$1" == "run.sh" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user