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

View file

@ -48,15 +48,15 @@ shift
# Validate the given options
if [ "$@" = "" ]
if [ "$1" = "" ]
then
echo "ERROR: A network expression must be specified!" >&2
exit 1
else
networkExpr=$(readlink -f $@)
networkExpr=$(readlink -f $1)
fi
# Build a network of VMs
nix-build '<nixos/modules/installer/tools/nixos-build-vms/build-vms.nix>' \
--argstr networkExpr $networkExpr $noOutLinkArg $showTraceArg
--argstr networkExpr $networkExpr $noOutLinkArg $showTraceArg