Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: docker-build.sh set -e crash on missing wifi/disk tools

command -v returns exit 1 when tool not found, which set -e catches.
Also [ -n "" ] && cp pattern exits 1 with set -e. Fixed both with
|| true guards and if/then instead of && chains.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+3 -3
+3 -3
fedac/native/docker-build.sh
··· 274 274 275 275 # ── 2i: WiFi tools ── 276 276 for tool in wpa_supplicant wpa_cli iw dhclient rfkill; do 277 - SRC_BIN=$(command -v "$tool" 2>/dev/null) 278 - [ -n "$SRC_BIN" ] && cp -L "$SRC_BIN" "$IROOT/bin/" 277 + SRC_BIN=$(command -v "$tool" 2>/dev/null || true) 278 + if [ -n "$SRC_BIN" ]; then cp -L "$SRC_BIN" "$IROOT/bin/"; fi 279 279 # Copy their deps too 280 280 if [ -n "$SRC_BIN" ]; then 281 281 for dep in $(ldd "$SRC_BIN" 2>/dev/null | grep -oP '/\S+'); do ··· 287 287 288 288 # ── 2i2: Disk/EFI tools (for HD install + OTA flash) ── 289 289 for tool in sfdisk mkfs.vfat efibootmgr partprobe; do 290 - SRC_BIN=$(command -v "$tool" 2>/dev/null) 290 + SRC_BIN=$(command -v "$tool" 2>/dev/null || true) 291 291 if [ -n "$SRC_BIN" ]; then 292 292 cp -L "$SRC_BIN" "$IROOT/bin/" 293 293 for dep in $(ldd "$SRC_BIN" 2>/dev/null | grep -oP '/\S+'); do