aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <np.hardass@gmail.com>2017-09-15 01:58:59 -0400
committerNP-Hardass <np.hardass@gmail.com>2017-09-15 01:58:59 -0400
commitf18b76f9c90c76dbe01fd08e2ca51dc1293189b3 (patch)
treeddaee37a7f26c4848c1ce7c7e7e84e638aa4a76f
parentwine.eselect: fix typo write_warning_message (diff)
downloadeselect-wine-f18b76f9c90c76dbe01fd08e2ca51dc1293189b3.tar.gz
eselect-wine-f18b76f9c90c76dbe01fd08e2ca51dc1293189b3.tar.bz2
eselect-wine-f18b76f9c90c76dbe01fd08e2ca51dc1293189b3.zip
wine.eselect: Further expand are_symlinks_valid regex checkv1.2.2
-rw-r--r--wine.eselect2
1 files changed, 1 insertions, 1 deletions
diff --git a/wine.eselect b/wine.eselect
index 5eca19e..d39eef9 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -130,7 +130,7 @@ are_symlinks_valid() {
local path=wine_${var}
path=${!path}
path=$(canonicalise "${path}")
- if [[ "${file}" != "${path%/}"/* ]]; then
+ if ! [[ "${file}" =~ "${path%/}"(/*)? ]]; then
write_error_msg "${symlink} points to ${file}"
write_error_msg "which doesn't appear to be part of wine"
return 1