aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wine.eselect5
1 files changed, 3 insertions, 2 deletions
diff --git a/wine.eselect b/wine.eselect
index 158c279..1aa5f9d 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -115,7 +115,8 @@ are_symlinks_valid() {
if [[ ! -e "${file}" ]]; then
die -q "${symlink} points to nonexistant ${file}"
else
- eval path=\${wine_${var}}
+ path=wine_${var}
+ path=${!path}
path=$(canonicalise "${path}")
if [[ "${file}" != "${path%/}"/* ]]; then
write_error_msg "${symlink} points to ${file}"
@@ -713,7 +714,7 @@ remove_symlinks() {
local symlink_vars=$(load_config "${CONFIG_DIR}/links/${v}" symlink_dirs)
if [[ -z "${symlink_vars}" ]]; then
- die -q "Missing listing of configured symlinks"
+ return 0
fi
local var
for var in ${symlink_vars[@]}; do