aboutsummaryrefslogtreecommitdiffstats
path: root/.extras/test-build
diff options
context:
space:
mode:
Diffstat (limited to '.extras/test-build')
-rwxr-xr-x.extras/test-build9
1 files changed, 8 insertions, 1 deletions
diff --git a/.extras/test-build b/.extras/test-build
index ecd763f..018030e 100755
--- a/.extras/test-build
+++ b/.extras/test-build
@@ -285,7 +285,14 @@ apply_overrides_to_order() {
[[ "${OV_DROP[$prog]:-}" == "1" ]] && continue
keep+=("$d")
done
- RESOLVED_ORDER=("${keep[@]:-}")
+ # Assign without "${keep[@]:-}": under set -u that fallback yields a
+ # one-element array holding an empty string when keep is empty (all deps
+ # dropped), which the build loop would then iterate over as d="". Guard it.
+ if [[ ${#keep[@]} -eq 0 ]]; then
+ RESOLVED_ORDER=()
+ else
+ RESOLVED_ORDER=("${keep[@]}")
+ fi
}
# =============================================================================