From 359dd11d00f8266a423ff16af5e1601d025311ca Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Tue, 6 Oct 2026 20:50:17 +0000 Subject: [PATCH] cross-remote: an empty CARGO_ARGS array under bash 3.2's set -u (unbound variable at the default-command test); the default command runs again Co-Authored-By: Claude Fable 5.1 --- tools/cross-remote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cross-remote.sh b/tools/cross-remote.sh index cf550960..028ec070 100755 --- a/tools/cross-remote.sh +++ b/tools/cross-remote.sh @@ -55,10 +55,10 @@ bs_host bs_context case "$BS_KIND:$BS_CRATE_REL" in node:*) - [ "${#CARGO_ARGS[@]}" -gt 0 ] || CARGO_ARGS=(build --release -p kaspad -p igneum-miner --features igneum-pow --target "$TARGET") + [ -n "${CARGO_ARGS[*]:-}" ] || CARGO_ARGS=(build --release -p kaspad -p igneum-miner --features igneum-pow --target "$TARGET") EXES="igneumd.exe igneum-miner.exe" ;; repo:app/igneum-app) - [ "${#CARGO_ARGS[@]}" -gt 0 ] || CARGO_ARGS=(build --release --target "$TARGET") + [ -n "${CARGO_ARGS[*]:-}" ] || CARGO_ARGS=(build --release --target "$TARGET") EXES="igneum-app.exe igneum-ota-sign.exe igneum-prove-verify.exe" ;; *) bs_die "cross-remote builds the fork (run from a vendor/igneum-node* worktree) or app/igneum-app, not $BS_CRATE_REL" ;; esac