From dff87f1bfd4fc1646a789750f81633065c58c87a Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 19 Oct 2011 17:45:55 +0800 Subject: [PATCH] Made install task extensible for future SCM additions --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index afd099d..48676ab 100755 --- a/install.sh +++ b/install.sh @@ -12,10 +12,10 @@ done # Set up ~/*.scmbrc files # --------------------------------------------------------------------------------------------- -# Git -if ! [[ -s "$HOME/.git.scmbrc" ]]; then - cp "$HOME/.scm_breeze/git.scmbrc.example" "$HOME/.git.scmbrc" - echo "== 'git.scmbrc.example' has been copied to '~/.git.scmbrc'. - Please edit this file to change SCM Breeze settings, Git aliases, and Git keyboard bindings." -fi +for scm in git; do + if ! [[ -s "$HOME/.$scm.scmbrc" ]]; then + cp "$HOME/.scm_breeze/$scm.scmbrc.example" "$HOME/.$scm.scmbrc" + echo "== '~/.$scm.scmbrc' has been created. Please edit this file to change '$scm' settings." + fi +done