diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-05-23 02:28:43 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-05-23 02:28:43 +0200 |
| commit | 13a4c9ee0f535fa1780e523ef26d4e46cbec7d91 (patch) | |
| tree | d43eb4f6d3969cfbb0380f3f96b888b14014b746 /install.sh | |
| parent | 181cffc1472d26e200a5e4c4de7ca4f8271bc495 (diff) | |
| download | dotfiles-13a4c9ee0f535fa1780e523ef26d4e46cbec7d91.tar.gz dotfiles-13a4c9ee0f535fa1780e523ef26d4e46cbec7d91.zip | |
Trying to fix escaping character ruining formatting
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -264,18 +264,10 @@ install_dotfiles() { std_err_output=$(config checkout 2>&1 >/dev/null) || true if [[ $std_err_output == *"following untracked working tree files would be overwritten"* ]]; then - echo "Backing up pre-existing dotfiles..." - mkdir -p "$dotfiles_dir-backup" - config status --porcelain | awk '{print $2}' | while read -r file; do - mkdir -p "$dotfiles_dir-backup/$(dirname "$file")" - mv "$file" "$dotfiles_dir-backup/$file" - done - if [ "$update" = false ]; then - config checkout 2>&1 >/dev/null + config checkout -- /dev/null 2>&1 fi fi - config config status.showUntrackedFiles no git config --global include.path "$HOME.gitconfig.aliases" |
