aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <np.hardass@gmail.com>2017-04-05 21:35:44 -0400
committerNP-Hardass <np.hardass@gmail.com>2017-04-05 21:35:44 -0400
commita820f40279964cc646bbcc46f2a790ab931d798d (patch)
treeaf149d830adf3fcf934ea913d3378832a93716cd
parentwine.eselect: Fix typo for are_symlinks_valid bin check (diff)
downloadeselect-wine-0.99_rc9.tar.gz
eselect-wine-0.99_rc9.tar.bz2
eselect-wine-0.99_rc9.zip
wine.eselect: Fix bad logicc in are_symlinks_valid for binv0.99_rc9
-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