From 4ccc4cb44ed094314aaced7d95cff563c61401ba Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 25 Oct 2022 20:45:35 -0500 Subject: [PATCH] output errors to dev null --- install | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install b/install index de8d465..e1d52bf 100755 --- a/install +++ b/install @@ -18,14 +18,14 @@ config () { install_bare_dotfiles () { git clone --bare https://github.com/joshuadavidthomas/dotfiles.git ${INSTALL_DIR} mkdir -p .config-backup - config checkout -f + config checkout > /dev/null 2>&1 || true if [ $? = 0 ]; then echo "Checked out config."; - else - echo "Backing up pre-existing dot files."; - config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{} + else + echo "Backing up pre-existing dot files."; + config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{} fi; - config checkout -f + config checkout config config status.showUntrackedFiles no }