aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'wine.eselect')
-rw-r--r--wine.eselect9
1 files changed, 8 insertions, 1 deletions
diff --git a/wine.eselect b/wine.eselect
index 00097c0..6639789 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -114,8 +114,15 @@ are_symlinks_valid() {
local file=$(canonicalise ${symlink})
if [[ ! -e "${file}" ]]; then
die -q "${symlink} points to nonexistant ${file}"
+ # Handle bin separately because symlinks don't go to wine_${var}
+ elif [[ "${var}" == "bin" ]]; then
+ local path="/usr/bin/${symlink##*/}${tgt#wine}"
+ if [[ "${file}" != "${path}" ]]; then
+ write_error_msg "${symlink} points to ${file}"
+ die -q "which doesn't appear to be the proper link"
+ fi
else
- path=wine_${var}
+ local path=wine_${var}
path=${!path}
path=$(canonicalise "${path}")
if [[ "${file}" != "${path%/}"/* ]]; then