diff options
author | Gerald Pfeifer <gerald@FreeBSD.org> | 2024-01-31 12:27:21 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@FreeBSD.org> | 2024-01-31 12:27:21 +0000 |
commit | ef11261971a87d2b75b352ab479b651d2f2b0b50 (patch) | |
tree | 864f393bdc7381bcbfda17cfffb331fcea75705f /emulators/wine | |
parent | 3561225871a1dcfc60626a25c2b6d23909b541bc (diff) | |
download | ports-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.sh | 12 |
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 |