shellcheck: fix the lint warnings for other generated scripts

This commit is contained in:
Otto Sabart 2022-08-08 14:57:19 +02:00
parent acd341426a
commit f3f8d650ab
No known key found for this signature in database
GPG Key ID: 823BAE99F8BE1E3C

View File

@ -6,8 +6,10 @@ rec {
mkVMScript = vm: pkgs.writers.writeBash "run-vm" ''
set -euo pipefail
export TMPDIR=$(mktemp -d /tmp/nix-bitcoin-vm.XXX)
trap "rm -rf $TMPDIR" EXIT
trap 'rm -rf $TMPDIR' EXIT
export NIX_DISK_IMAGE=$TMPDIR/nixos.qcow2
# shellcheck disable=SC2211
QEMU_OPTS="-smp $(nproc) -m 1500" ${vm}/bin/run-*-vm
'';