aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-23 02:28:43 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-23 02:28:43 +0200
commit13a4c9ee0f535fa1780e523ef26d4e46cbec7d91 (patch)
treed43eb4f6d3969cfbb0380f3f96b888b14014b746 /install.sh
parent181cffc1472d26e200a5e4c4de7ca4f8271bc495 (diff)
downloaddotfiles-13a4c9ee0f535fa1780e523ef26d4e46cbec7d91.tar.gz
dotfiles-13a4c9ee0f535fa1780e523ef26d4e46cbec7d91.zip
Trying to fix escaping character ruining formatting
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/install.sh b/install.sh
index d05d46e..80b3e52 100755
--- a/install.sh
+++ b/install.sh
@@ -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"