From 65d3bd489f66391a0fbf50fff55e816b3c3d2dc6 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sat, 12 Sep 2020 21:01:27 +0200 Subject: [PATCH] fix #70 --- nixos-generate | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos-generate b/nixos-generate index 1ee7093..71660c3 100755 --- a/nixos-generate +++ b/nixos-generate @@ -119,6 +119,10 @@ if [[ -z $format_path ]]; then abort "missing format. use --help for more details" fi +if [[ ! -f $format_path ]]; then + abort "format file not found: $format_path" +fi + nix_args+=( -I "nixos-config=$configuration" -I "format-config=$format_path"