diff options
author | NP-Hardass <np.hardass@gmail.com> | 2017-04-05 21:35:44 -0400 |
---|---|---|
committer | NP-Hardass <np.hardass@gmail.com> | 2017-04-05 21:35:44 -0400 |
commit | a820f40279964cc646bbcc46f2a790ab931d798d (patch) | |
tree | af149d830adf3fcf934ea913d3378832a93716cd | |
parent | wine.eselect: Fix typo for are_symlinks_valid bin check (diff) | |
download | eselect-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.eselect | 4 |
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 |