mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fix empty array expansion under bash 3.2 (macOS)
macOS ships bash 3.2 which treats empty arrays as unbound under set -u.
Use ${arr[@]+"${arr[@]}"} idiom for virtfs_args and snapshot_args.
This commit is contained in:
parent
7534637021
commit
288b80ee0d
@ -503,8 +503,8 @@ build_one() {
|
||||
-drive "file=$bundle_iso,format=raw,if=virtio,readonly=on" \
|
||||
-netdev user,id=net0 \
|
||||
-device virtio-net-pci,netdev=net0 \
|
||||
"${virtfs_args[@]}" \
|
||||
"${snapshot_args[@]}" \
|
||||
${virtfs_args[@]+"${virtfs_args[@]}"} \
|
||||
${snapshot_args[@]+"${snapshot_args[@]}"} \
|
||||
-serial "file:$serial_log" \
|
||||
-display none \
|
||||
-daemonize \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user