Skip to content

Commit

Permalink
emulators/wine: Simplify the logic in wine.sh
Browse files Browse the repository at this point in the history
PR:		275677
Discussed with:	Alex S <iwtcex@gmail.com>
  • Loading branch information
Gerald Pfeifer authored and Gerald Pfeifer committed Jan 31, 2024
1 parent 3561225 commit ef11261
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions emulators/wine/files/wine.sh
Expand Up @@ -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

Expand Down

0 comments on commit ef11261

Please sign in to comment.