Skip to content

Commit

Permalink
fix dotfiles-install
Browse files Browse the repository at this point in the history
  • Loading branch information
biocoderh committed Oct 11, 2023
1 parent 04d7a72 commit 72d0ab6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .scripts/common/dotfiles-install
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ if dotfiles checkout; then
echo "Checked out dotfiles."
else
echo "Backing up pre-existing dot files to $BACKUP_DIR"
mkdir -p "$BACKUP_DIR"
dotfiles checkout 2>&1 | grep -E "\s+\." | awk "{ print $1 }" | xargs -I{} mv "$WORK_TREE_DIR/"{} "$BACKUP_DIR/"{}
dotfiles checkout 2>&1 | grep -E "\s+\." | awk "{ print $1 }" | xargs -I{} sh -c "mkdir -p $BACKUP_DIR/{}; mv $WORK_TREE_DIR/{} $BACKUP_DIR/{}"
dotfiles checkout
fi

Expand Down

0 comments on commit 72d0ab6

Please sign in to comment.