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 4b0f981..00097c0 100644
--- a/wine.eselect
+++ b/wine.eselect
@@ -798,9 +798,10 @@ set_symlinks() {
store_config "${CONFIG_DIR}/links/${v}" "bin" ""
for b in "${wine_bin}"/*; do
link="${EPREFIX}/usr/bin/${b##*/}${v_arg#-}"
- ln -s "${b}" "${link}"
+ local linktgt="${EPREFIX}/usr/bin/${b##*/}${tgt##wine}"
+ ln -s "${linktgt}" "${link}"
if [[ $? -ne 0 ]]; then
- write_warning_msg "Failed to set symlink from ${b} to ${link}"
+ write_warning_msg "Failed to set symlink from ${linktgt} to ${link}"
write_warning_msg "Cleaning up"
remove_symlinks ${v_arg}
fi