Fixed minor issue with unary operator expected
This commit is contained in:
parent
7f16abf749
commit
d312695d78
|
@ -48,15 +48,15 @@ shift
|
||||||
|
|
||||||
# Validate the given options
|
# Validate the given options
|
||||||
|
|
||||||
if [ "$@" = "" ]
|
if [ "$1" = "" ]
|
||||||
then
|
then
|
||||||
echo "ERROR: A network expression must be specified!" >&2
|
echo "ERROR: A network expression must be specified!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
networkExpr=$(readlink -f $@)
|
networkExpr=$(readlink -f $1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build a network of VMs
|
# Build a network of VMs
|
||||||
|
|
||||||
nix-build '<nixos/modules/installer/tools/nixos-build-vms/build-vms.nix>' \
|
nix-build '<nixos/modules/installer/tools/nixos-build-vms/build-vms.nix>' \
|
||||||
--argstr networkExpr $networkExpr $noOutLinkArg $showTraceArg
|
--argstr networkExpr $networkExpr $noOutLinkArg $showTraceArg
|
||||||
|
|
Loading…
Reference in New Issue