fix: 解决 APP_NAME 未定义时脚本退出问题
This commit is contained in:
@@ -10,13 +10,13 @@
|
||||
|
||||
# 打印包含包含Logo的欢迎信息
|
||||
print_welcome_info() {
|
||||
[[ -n "${APP_NAME}" ]] && github_repo="https://github.com/colovu/docker-${APP_NAME}"
|
||||
[[ -n "${APP_NAME:-}" ]] && github_repo="https://github.com/colovu/docker-${APP_NAME}"
|
||||
|
||||
LOG_I ' ____ _ '
|
||||
LOG_I ' / ___|___ | | _____ ___ _ '
|
||||
LOG_I '| | / _ \| |/ _ \ \ / / | | | '"Docker : ${BOLD}${APP_NAME:-undefined}${RESET}"
|
||||
LOG_I '| |__| (_) | | (_) \ V /| |_| | '"Version: ${BOLD}${APP_VER:-0.0}${RESET}"
|
||||
LOG_I ' \____\___/|_|\___/ \_/ \__,_| '"PowerBy: ${BOLD}Endial@126.com${RESET}"
|
||||
LOG_I " ____ _ "
|
||||
LOG_I " / ___|___ | | _____ ___ _ "
|
||||
LOG_I "| | / _ \| |/ _ \ \ / / | | | Docker : ${BOLD}${APP_NAME:-undefined}${RESET}"
|
||||
LOG_I "| |__| (_) | | (_) \ V /| |_| | Version: ${BOLD}${APP_VER:-0.0}${RESET}"
|
||||
LOG_I " \____\___/|_|\___/ \_/ \__,_| PowerBy: ${BOLD}Endial@126.com${RESET}"
|
||||
LOG_D " Project Repo: ${github_repo:-}"
|
||||
LOG_I ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user