From 35ac2ad9cab9ad0b3a31876f5298e8924b9ce6d5 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Tue, 6 Aug 2013 19:04:21 +0300 Subject: [PATCH] nixos-checkout: let it run without args again. --- modules/installer/tools/nixos-checkout.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/installer/tools/nixos-checkout.nix b/modules/installer/tools/nixos-checkout.nix index 4859a454448..1a734ca5eeb 100644 --- a/modules/installer/tools/nixos-checkout.nix +++ b/modules/installer/tools/nixos-checkout.nix @@ -16,8 +16,8 @@ let '' #! ${pkgs.stdenv.shell} -e - if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]; then - echo "Usage: `basename $0` PREFIX. See NixOS Manual for more info." + if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + echo "Usage: `basename $0` [PREFIX]. See NixOS Manual for more info." exit 0 fi