fix: lack of spaces on echo

This commit is contained in:
Nydragon 2024-09-03 02:09:42 +02:00
parent 208621e2ef
commit a936da6b00
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g

View file

@ -70,7 +70,7 @@ in
fishl = writeFishBin "fishl" ./logo.fish; fishl = writeFishBin "fishl" ./logo.fish;
nrun = writeFishBin "nrun" '' nrun = writeFishBin "nrun" ''
if echo $argv[1] | grep -Eq '^(github):.+/.+$' if echo "$argv[1]" | grep -Eq '^[a-z]+:.+/.+$'
nix run $argv[1] -- $argv[2..] nix run $argv[1] -- $argv[2..]
else else
nix run nixpkgs#$argv[1] -- $argv[2..] nix run nixpkgs#$argv[1] -- $argv[2..]