irongit

fix: hide conusing missing directory error

huncholanehuncholaneauthored
parent 935b4f4commit 2df3eaeaa9e820d32a41e5eaee543619ea9c2220Browse files

1 file changed, +1 -1

+1-1install.sh
@@ -49,7 +49,7 @@ read -rp "Are you sure you want to replace your current config? (y/n): " yn
4949 if [[ "$yn" == "y" ]]; then
5050 oldenv="$(cat "$HOME/.zshenv" 2>/dev/null)"
5151 echo 'export ZDOTDIR=$HOME/.config/zsh' >"$HOME/.zshenv"
52- if cp -r "$HOME/.config/zsh" "$STORAGE/backup"; then
52+ if cp -r "$HOME/.config/zsh" "$STORAGE/backup" &>/dev/null; then
5353 echo "Stored $HOME/.config/zsh into $STORAGE/backup"
5454 fi
5555 rm -rf "$HOME/.config/zsh" &>/dev/null