From 13a4c9ee0f535fa1780e523ef26d4e46cbec7d91 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 23 May 2024 02:28:43 +0200 Subject: Trying to fix escaping character ruining formatting --- install.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'install.sh') 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" -- cgit v1.2.3