From 7db9a2e0688b3a6d5ceac018cc0ecf76f633294a Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 10 Jul 2015 18:45:06 +0200 Subject: [PATCH] scripts/Bootstrap/Pmodules/modulecmd: - wrapper to make modulecmd relocatable --- scripts/Bootstrap/Pmodules/modulecmd | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 scripts/Bootstrap/Pmodules/modulecmd diff --git a/scripts/Bootstrap/Pmodules/modulecmd b/scripts/Bootstrap/Pmodules/modulecmd new file mode 100644 index 0000000..f35a650 --- /dev/null +++ b/scripts/Bootstrap/Pmodules/modulecmd @@ -0,0 +1,4 @@ +#!/bin/bash --noprofile + +declare -r bindir=$( cd $(dirname $0) && pwd -P ) +"${bindir}/bash" --noprofile --norc "${bindir}/../libexec/modulecmd.bash" "$@"