aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wine.eselect10
1 files changed, 7 insertions, 3 deletions
diff --git a/wine.eselect b/wine.eselect
index 44ece59..f25ef0c 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -732,10 +732,14 @@ remove_symlinks() {
die -q "Missing listing of ${var} symlinks"
fi
for symlink in ${symlinks[@]}; do
- if [[ ! -L "${symlink}" ]]; then
- die -q "${symlink} is not a symlink."
+ if [[ -e "${symlink}" ]]; then
+ if [[ ! -L "${symlink}" ]]; then
+ die -q "${symlink} is not a symlink."
+ fi
+ rm "${symlink}" || die "Failed to rm ${symlink}"
+ else
+ write_warning_msg "${symlink} symlink was missing."
fi
- rm "${symlink}" || die "Failed to rm ${symlink}"
# remove entry from config file
symlinks=$(list_rm_item "${symlink}" "${symlinks}")