diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-06-28 15:03:45 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-06-28 15:03:45 +0200 |
commit | 41cfc496aa3ad1d4cea6d15afbec130b21e3a32c (patch) | |
tree | 4a383cf7c981f87fca962b24931dccb711e2651b /nix-script | |
parent | f77720de112b67825054589ef6ee0ae1f349cabc (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-x | nix-script | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |