Skip to content

Commit 9ea9afd

Browse files
committed
fix(packaging): split rootfs URLs in arch smoke test
1 parent d15d27f commit 9ea9afd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packaging/checks/smoke-arch.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ echo "foreign-architecture package ($PKG_ARCH on $(uname -m)): smoke-testing in
138138
mkdir -p "$CHROOT_DIR"
139139
rootfs_tar=/tmp/alarm.tar.gz
140140
rc=1
141-
for url in "$(alarm_rootfs_urls)"; do
141+
while IFS= read -r url; do
142+
[ -n "$url" ] || continue
142143
echo "downloading ARM rootfs from $url"
143144
if curl --proto '=https' --tlsv1.2 -sSfL -o "$rootfs_tar" "$url"; then rc=0; break; fi
144-
done
145+
done < <(alarm_rootfs_urls)
145146
[ "$rc" -eq 0 ] || { echo "ERROR: could not download the Arch Linux ARM rootfs" >&2; exit 1; }
146147
# The rootfs ships device nodes we cannot recreate inside an unprivileged
147148
# container; skip them. Remaining tar warnings are non-fatal.

0 commit comments

Comments
 (0)