Fixed minor issue with unary operator expected

This commit is contained in:
Sander van der Burg 2013-07-03 11:13:58 +02:00
parent 7f16abf749
commit d312695d78
1 changed files with 3 additions and 3 deletions

View File

@ -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