diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-27 11:01:55 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-27 11:01:55 -0200 |
commit | 9d04208dd0ef69a9e69b2b4d4860414ed0c45a16 (patch) | |
tree | 7d215bf237c8597a69af4a6fe2f3e76892be75be | |
parent | ad077eac38a0616cebe88105a9e44b3b54e0d263 (diff) | |
download | templater-9d04208dd0ef69a9e69b2b4d4860414ed0c45a16.tar.gz templater-9d04208dd0ef69a9e69b2b4d4860414ed0c45a16.tar.bz2 |
Be verbose if something is already set
-rwxr-xr-x | templater | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -84,6 +84,8 @@ function templater_basic { #echo "* Nothing here? :P" >> TODO.md touch ChangeLog + else + __templater_echo "Basic files already set" fi } @@ -97,7 +99,7 @@ function templater_git { git add . #git commit -m "Initial import" else - __templater_echo "Git already installed" + __templater_echo "Git already set" fi } @@ -109,6 +111,8 @@ function templater_githooks { __templater___templater_echo "Setting up git-hooks..." git hooks --install fi + else + __templater_echo "Git hooks already set" fi } @@ -126,6 +130,8 @@ function templater_gitflow { git flow init -d fi fi + else + __templater_echo "Git flow already set" fi } @@ -137,6 +143,8 @@ function templater_vagrant { vagrant init echo '.vagrant' >> .gitignore #git commit -a -m "Adds vagrant support" + else + __templater_echo "Vagrant already set" fi } @@ -146,6 +154,8 @@ function templater_kvmx { __templater___templater_echo "Setting up kvmx..." kvmx init #git commit -a -m "Adds kvmx support" + else + __templater_echo "KVMX already set" fi } @@ -159,6 +169,8 @@ function templater_puppet { #git submodule add $BOOSTRAP puppet git remote add puppet $BOOTSTRAP git subtree add --prefix puppet $BOOTSTRAP master --squash + else + __templater_echo "Puppet already set" fi } @@ -199,6 +211,8 @@ function templater_ikiwiki { git add . #git commit -a -m "Static site generation support using ikiwiki" fi + else + __templater_echo "Ikiwiki already set" fi } @@ -228,6 +242,8 @@ function templater_sphinx { mkdir _themes git submodule add https://github.com/snide/sphinx_rtd_theme _themes/sphinx_rtd_theme fi + else + __templater_echo "Sphinx already set" fi } @@ -252,6 +268,8 @@ function templater_pelican { if [ ! -d "content" ]; then cp -r $DIRNAME/share/pelican/content . fi + else + __templater_echo "Pelican already set" fi } |