diff options
author | NP-Hardass <np.hardass@gmail.com> | 2017-04-05 20:55:07 -0400 |
---|---|---|
committer | NP-Hardass <np.hardass@gmail.com> | 2017-04-05 20:55:07 -0400 |
commit | 04d3bac33f142f67b0592d4eeb8a778712b21141 (patch) | |
tree | 5af3bcbd1f65c25972e4eae8df1f6265b559c1ec | |
parent | wine.eselect: Update are_symlinks_valid for new bin symlinks (diff) | |
download | eselect-wine-04d3bac33f142f67b0592d4eeb8a778712b21141.tar.gz eselect-wine-04d3bac33f142f67b0592d4eeb8a778712b21141.tar.bz2 eselect-wine-04d3bac33f142f67b0592d4eeb8a778712b21141.zip |
wine.eselect: Fix typo for are_symlinks_valid bin check
-rw-r--r-- | wine.eselect | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wine.eselect b/wine.eselect index 6639789..83d061b 100644 --- a/wine.eselect +++ b/wine.eselect @@ -116,7 +116,8 @@ 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##*/}${tgt#wine}" + local path="/usr/bin/${symlink##*/}" + path="${path%-*}${tgt#wine}" if [[ "${file}" != "${path}" ]]; then write_error_msg "${symlink} points to ${file}" die -q "which doesn't appear to be the proper link" |