aboutsummaryrefslogtreecommitdiff
path: root/templater
diff options
context:
space:
mode:
Diffstat (limited to 'templater')
-rwxr-xr-xtemplater9
1 files changed, 5 insertions, 4 deletions
diff --git a/templater b/templater
index aa98fb9..f44885e 100755
--- a/templater
+++ b/templater
@@ -13,12 +13,12 @@ BOOTSTRAP="https://git.fluxo.info/puppet-bootstrap"
CWD="`pwd`"
# Set shared files location
-if [ -e "`dirname $(readlink -f $0)`/share/$NAME" ]; then
+if [ -e "`dirname $(readlink -f $0)`/share/$BASENAME" ]; then
# Development or local installation layout
- SHARE="`dirname $(readlink -f $0)`/share/$NAME"
+ SHARE="`dirname $(readlink -f $0)`/share/$BASENAME"
else
# System installation layout
- SHARE="`dirname $(readlink -f $0)`/../share/$NAME"
+ SHARE="`dirname $(readlink -f $0)`/../share/$BASENAME"
fi
# Initialize project
@@ -46,7 +46,8 @@ function __templater_ask {
# Return list of implementations
function __templater_implementations {
# Do not sort this list: the order in which functions are present in the code is important
- grep "^function templater_" $PROGRAM | cut -d ' ' -f 2 | sed -e 's/templater_//'
+ #grep "^function templater_" $PROGRAM | cut -d ' ' -f 2 | sed -e 's/templater_//'
+ ls $SHARE
}
# Message