From a936da6b00ef7f670e5171d97df037b8b67dfcd6 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Tue, 3 Sep 2024 02:09:42 +0200 Subject: [PATCH] fix: lack of spaces on echo --- home/scripts/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/scripts/default.nix b/home/scripts/default.nix index 9926cfa..a7ddf60 100644 --- a/home/scripts/default.nix +++ b/home/scripts/default.nix @@ -70,7 +70,7 @@ in fishl = writeFishBin "fishl" ./logo.fish; nrun = writeFishBin "nrun" '' - if echo $argv[1] | grep -Eq '^(github):.+/.+$' + if echo "$argv[1]" | grep -Eq '^[a-z]+:.+/.+$' nix run $argv[1] -- $argv[2..] else nix run nixpkgs#$argv[1] -- $argv[2..]