From 3086c4f3720c41110f6f83778a4c710600013880 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 21 Sep 2020 22:52:03 -0600 Subject: [PATCH] Silenced meaningless find error; added mssqlcli config --- setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup b/setup index f8c3fc0..20c080e 100755 --- a/setup +++ b/setup @@ -115,7 +115,7 @@ function CONFIG__PGCLI() { echo "linked pgcli configuration"; } -function CONFIG__PGCLI() { +function CONFIG__MSSQLCLI() { CONFIG__SYMLINK "mssqlcli" "config"; echo "linked mssqlcli configuration"; } @@ -186,8 +186,8 @@ function CLEAN_BACKUP() { case $yn in [Yy]* ) echo 'cleaning backup files'; - for file in $(find "$HOME/.config/" -name \*.bak); do rm $file; done - for file in $(find "$HOME" -name .\*.bak); do rm $file; done + for file in $(find "$HOME/.config/" -name \*.bak 2>/dev/null); do rm $file; done + for file in $(find "$HOME" -name .\*.bak 2>/dev/null); do rm $file; done ;; * ) echo 'skipping cleanup';; esac