From a4773bfd1a799902990419bee5abd7f91b2f64cf Mon Sep 17 00:00:00 2001 From: Matthijs Steen Date: Sat, 24 Jul 2021 10:47:28 +0200 Subject: [PATCH] fix Darwin for issue #26 --- src/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.sh b/src/main.sh index 6409507..680e4c7 100755 --- a/src/main.sh +++ b/src/main.sh @@ -425,7 +425,7 @@ done handle_common -[[ $input_type =~ ^(nix|json|shell)?$ ]] || die "Unsupported input type '${input_type}'." +[[ -z $input_type || $input_type =~ ^(nix|json|shell)$ ]] || die "Unsupported input type '${input_type}'." [[ $output_type =~ ^(nix|json|shell|raw)$ ]] || die "Unsupported output type '${output_type}'." if [[ -v fetcher ]]; then