From 9d04208dd0ef69a9e69b2b4d4860414ed0c45a16 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 27 Oct 2017 11:01:55 -0200 Subject: Be verbose if something is already set --- templater | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'templater') diff --git a/templater b/templater index f7d5b48..170e203 100755 --- a/templater +++ b/templater @@ -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 } -- cgit v1.2.3