diff options
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 |