dkbuild: bug avec -u seul

This commit is contained in:
Jephté Clain 2023-10-02 19:08:45 +04:00
parent 8cdc3cb2bb
commit 4f7bc3f6bf
1 changed files with 6 additions and 4 deletions

10
dkbuild
View File

@ -2656,9 +2656,10 @@ cd "$projdir"
} }
function runb() { function runb() {
local build="${DEFAULTS[build_build]-1}" local build="${DEFAULTS[build_build]-1}"
if [ -n "$build" ]; then if [ -z "$build" ]; then
run "$@" [ $# -eq 0 ] && return 1 || return 0
fi fi
run "$@"
} }
function call() { function call() {
edebug "call $(qvals "$@")" edebug "call $(qvals "$@")"
@ -2668,9 +2669,10 @@ cd "$projdir"
} }
function callb() { function callb() {
local build="${DEFAULTS[build_build]-1}" local build="${DEFAULTS[build_build]-1}"
if [ -n "$build" ]; then if [ -z "$build" ]; then
call "$@" [ $# -eq 0 ] && return 1 || return 0
fi fi
call "$@"
} }
function dkbuild() { function dkbuild() {
edebug "dkbuild $(qvals "$@")" edebug "dkbuild $(qvals "$@")"