summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-06-28 15:03:45 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-06-28 15:03:45 +0200
commit41cfc496aa3ad1d4cea6d15afbec130b21e3a32c (patch)
tree4a383cf7c981f87fca962b24931dccb711e2651b /nix-script
parentf77720de112b67825054589ef6ee0ae1f349cabc (diff)
Fix: move path removing to helper
With the path-removing code in the helper function "scriptname_to_command" we have also closed the issue that the help text includes the full path of the command. Close #22
Diffstat (limited to 'nix-script')
-rwxr-xr-xnix-script3
1 files changed, 1 insertions, 2 deletions
diff --git a/nix-script b/nix-script
index 3cfc082..cb8f3de 100755
--- a/nix-script
+++ b/nix-script
@@ -92,8 +92,7 @@ then
stdout "Listing commands"
for cmd in $(all_commands)
do
- echo $(scriptname_to_command $cmd | \
- sed -r "s,$(dirname ${BASH_SOURCE[0]})/nix-script-,,")
+ echo $(scriptname_to_command $cmd)
done
exit 0
fi