diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-28 12:12:37 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-28 12:12:37 -0200 |
commit | 3d2eb793def440e3361d6b8f2593fd04042138f6 (patch) | |
tree | 9b5f035ce1f44544ac00ec4802d376d13e76a6fb /templater | |
parent | a4ce12bae6189c642443cd993ff9655c1f560330 (diff) | |
download | templater-3d2eb793def440e3361d6b8f2593fd04042138f6.tar.gz templater-3d2eb793def440e3361d6b8f2593fd04042138f6.tar.bz2 |
Switch to share/templater
Diffstat (limited to 'templater')
-rwxr-xr-x | templater | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |