summaryrefslogtreecommitdiffstats
path: root/nix-utils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nix-utils.sh')
-rw-r--r--nix-utils.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix-utils.sh b/nix-utils.sh
index 3ff20df..d087bdf 100644
--- a/nix-utils.sh
+++ b/nix-utils.sh
@@ -13,7 +13,8 @@ stdout() {
}
scriptname_to_command() {
- echo "$1" | sed 's,^\.\/nix-script-,,' | sed 's,\.sh$,,'
+ echo "$1" | sed 's,^\.\/nix-script-,,' | sed 's,\.sh$,,' | \
+ sed -r "s,$(dirname ${BASH_SOURCE[0]})/nix-script-,,"
}
help_synopsis() {