aboutsummaryrefslogtreecommitdiff
path: root/emulators/wine
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2024-01-31 12:27:21 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2024-01-31 12:27:21 +0000
commitef11261971a87d2b75b352ab479b651d2f2b0b50 (patch)
tree864f393bdc7381bcbfda17cfffb331fcea75705f /emulators/wine
parent3561225871a1dcfc60626a25c2b6d23909b541bc (diff)
downloadports-ef11261971a87d2b75b352ab479b651d2f2b0b50.tar.gz
ports-ef11261971a87d2b75b352ab479b651d2f2b0b50.zip
emulators/wine: Simplify the logic in wine.sh
PR: 275677 Discussed with: Alex S <iwtcex@gmail.com>
Diffstat (limited to 'emulators/wine')
-rw-r--r--emulators/wine/files/wine.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/emulators/wine/files/wine.sh b/emulators/wine/files/wine.sh
index 057406196371..ebd89e55ebdc 100644
--- a/emulators/wine/files/wine.sh
+++ b/emulators/wine/files/wine.sh
@@ -2,15 +2,11 @@
TARGET="$(realpath "$0")"
-if [ -z "$WINESERVER" ]
-then
- if [ -f "${TARGET%/*}/wineserver" ]
- then
- export WINESERVER="${TARGET%/*}/wineserver"
- fi
- if [ -f "${TARGET%/*}/wineserver32" ]
- then
+if [ -z "$WINESERVER" ]; then
+ if [ -f "${TARGET%/*}/wineserver32" ]; then
export WINESERVER="${TARGET%/*}/wineserver32"
+ elif [ -f "${TARGET%/*}/wineserver" ]; then
+ export WINESERVER="${TARGET%/*}/wineserver"
fi
fi