Skip to content

Commit

Permalink
Rework how we decide if repo is setup already
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Nov 26, 2018
1 parent 5b23726 commit 9b606b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ fi

repo_name=$(cat .git/description)

if [ "$repo_name" == "jekyll-tailwind-starter" ]; then
if [ "$repo_name" != "jekyll-tailwind-starter" ]; then
echo "==> Reinitializing Git repository"
rm -rf .git

git init

cat "jekyll-tailwind-starter" > .git/description
fi

0 comments on commit 9b606b4

Please sign in to comment.