mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
macos: treat empty APP_BUILD as fallback
This commit is contained in:
committed by
Ayaan Zaidi
parent
0332dce203
commit
84adedd1cb
@@ -56,7 +56,7 @@ canonical_build_from_version() {
|
||||
return 1
|
||||
}
|
||||
|
||||
if [[ -z "${APP_BUILD+x}" ]]; then
|
||||
if [[ -z "${APP_BUILD:-}" ]]; then
|
||||
APP_BUILD="$GIT_BUILD_NUMBER"
|
||||
if CANONICAL_BUILD="$(canonical_build_from_version "$APP_VERSION")"; then
|
||||
if [[ "$CANONICAL_BUILD" =~ ^[0-9]+$ ]] && (( CANONICAL_BUILD > APP_BUILD )); then
|
||||
|
||||
Reference in New Issue
Block a user