Skip to content

Commit

Permalink
Add dotfiles branch to log message in bootstrap.sh
Browse files Browse the repository at this point in the history
5cf0d6c

Commit 5cf0d6c added branch and URL configuration to the dotfiles repo
read by bootstrap.sh. This commit will improve the log message provided
when cloning a dotfiles repo, by logging the Git branch name.
  • Loading branch information
br3ndonland committed Jul 16, 2021
1 parent c73a723 commit 762d935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ fi
if [ -n "$STRAP_DOTFILES_URL" ] && [ -n "$STRAP_DOTFILES_BRANCH" ]; then
log "Fetching $STRAP_DOTFILES_URL:"
if [ ! -d "$HOME/.dotfiles" ]; then
log "Cloning to ~/.dotfiles:"
log "Cloning to ~/.dotfiles and checking out $STRAP_DOTFILES_BRANCH."
git clone $Q "$STRAP_DOTFILES_URL" \
--branch "$STRAP_DOTFILES_BRANCH" ~/.dotfiles
else
log "Checking out $STRAP_DOTFILES_BRANCH in ~/.dotfiles:"
log "Checking out $STRAP_DOTFILES_BRANCH in ~/.dotfiles."
(
cd ~/.dotfiles
git stash
Expand Down

0 comments on commit 762d935

Please sign in to comment.