aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'wine.eselect')
-rw-r--r--wine.eselect4
1 files changed, 2 insertions, 2 deletions
diff --git a/wine.eselect b/wine.eselect
index 83d061b..44ece59 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -116,10 +116,10 @@ are_symlinks_valid() {
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##*/}"
- path="${path%-*}${tgt#wine}"
+ local path="${symlink%${v_arg#-}}${tgt#wine}"
if [[ "${file}" != "${path}" ]]; then
write_error_msg "${symlink} points to ${file}"
+ write_error_msg "${path}"
die -q "which doesn't appear to be the proper link"
fi
else