From: sev Date: Wed, 21 Aug 2024 07:20:27 +0000 (-0500) Subject: install.sh: suppress bad link errors X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/cf5043a683114122ba1b5ff761d6519d634602ba install.sh: suppress bad link errors --- diff --git a/install.sh b/install.sh index b28eb81..9f8eac7 100755 --- a/install.sh +++ b/install.sh @@ -67,7 +67,7 @@ find . "$share" "$etc" \ "$LOCAL/bin" "$share/fonts" "$share/themes" "$share/icons" \ "$etc/gnupg" .ssh .termux \ -xdev -mindepth 1 -maxdepth 1 -type l -exec sh -c ' - r="$(realpath "{}")" + r="$(realpath "{}" 2>/dev/null)" [ "${r#'"$SRC"'/}" != "$r" ] && '"$([ "${DOTFILES_TEST+x}" = x ] && echo 'echo +++ ')"'unlink "{}"' \;