nixos/installer: Quote variable references
See <https://github.com/koalaman/shellcheck/wiki/SC2086>.
This commit is contained in:
parent
c9a7385997
commit
e0f1682910
@ -35,7 +35,7 @@ while [ $# -gt 0 ]; do
|
|||||||
showUsage
|
showUsage
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
networkExpr="$(readlink -f $1)"
|
networkExpr="$(readlink -f "$1")"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -50,4 +50,4 @@ fi
|
|||||||
|
|
||||||
# Build a network of VMs
|
# Build a network of VMs
|
||||||
nix-build '<nixpkgs/nixos/modules/installer/tools/nixos-build-vms/build-vms.nix>' \
|
nix-build '<nixpkgs/nixos/modules/installer/tools/nixos-build-vms/build-vms.nix>' \
|
||||||
--argstr networkExpr $networkExpr "${nixBuildArgs[@]}"
|
--argstr networkExpr "$networkExpr" "${nixBuildArgs[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user