summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-06-05 14:31:15 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-06-05 14:36:22 +0200
commit72a31ad44dc7957fcf0e521c4a977c89b805973c (patch)
tree6ccb4eea9858afaa4042a7df315b4e16f5c99525 /nix-script
parent0ffbe2a032640714688f4e5ff0b5f15219edef59 (diff)
Use scriptname_to_command() in nix-script caller
Diffstat (limited to 'nix-script')
-rwxr-xr-xnix-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-script b/nix-script
index 1c74471..547e41f 100755
--- a/nix-script
+++ b/nix-script
@@ -92,7 +92,7 @@ then
stdout "Listing commands"
for cmd in $(all_commands)
do
- echo "$cmd" | sed 's,^\.\/nix-script-,,' | sed 's,\.sh$,,'
+ echo $(scriptname_to_command $cmd)
done
exit 0
fi