aboutsummaryrefslogtreecommitdiff
path: root/templater
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-28 12:12:37 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-28 12:12:37 -0200
commit3d2eb793def440e3361d6b8f2593fd04042138f6 (patch)
tree9b5f035ce1f44544ac00ec4802d376d13e76a6fb /templater
parenta4ce12bae6189c642443cd993ff9655c1f560330 (diff)
downloadtemplater-3d2eb793def440e3361d6b8f2593fd04042138f6.tar.gz
templater-3d2eb793def440e3361d6b8f2593fd04042138f6.tar.bz2
Switch to share/templater
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