Skip to content

Commit

Permalink
add more intro text for templates install
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksingleton committed Apr 29, 2016
1 parent bfe82f7 commit 83f83f6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,25 @@ run() {

TEMPLATE_DIR=$(git config --global init.templatedir) || true

echo "Not running from inside a git repository... installing as a"
echo "git template."
echo
echo "If you meant to install to a specific repo, 'cd' into that"
echo "repo and run this script again."
echo
echo "Installing as a template will automatically add Talisman to"
echo "any new repo that you 'init' or 'clone'."

if [ "$TEMPLATE_DIR" = "" ]; then
echo
echo "No git template directory is configured. Let's add one."
echo "(this will override any system git templates and modify your git config file)"
echo
read -u1 -p "Git template directory: ($DEFAULT_GLOBAL_TEMPLATE_DIR) " TEMPLATE_DIR
TEMPLATE_DIR=${TEMPLATE_DIR:-$DEFAULT_GLOBAL_TEMPLATE_DIR}
git config --global init.templatedir $TEMPLATE_DIR
else
echo
echo "You already have a git template directory configured."
read -u1 -p "Add Talisman to '$TEMPLATE_DIR/hooks?' (Y/n) " USE_EXISTING

Expand Down

0 comments on commit 83f83f6

Please sign in to comment.