Skip to content

Commit

Permalink
winetricks_set_wineprefix: replace which with command -v
Browse files Browse the repository at this point in the history
  • Loading branch information
jre-wine committed May 9, 2024
1 parent 14156c0 commit e2cf65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -5082,7 +5082,7 @@ winetricks_set_wineprefix()
if test -d "${W_DRIVE_C}/windows/syswow64"; then
# Check the bitness of wineserver + wine binary, used later to determine if we're on a WOW setup (no wine64)
# https://github.com/Winetricks/winetricks/issues/2030
WINESERVER_BIN="$(which "${WINESERVER}")"
WINESERVER_BIN="$(command -v "${WINESERVER}")"

# wineboot often is a link pointing to wineapploader in Wine's bindir. If we don't find binaries we may look for them there later
if [ -n "${READLINK_F}" ]; then
Expand Down Expand Up @@ -5116,7 +5116,7 @@ winetricks_set_wineprefix()
w_warn "Unknown file arch of ${WINESERVER_BIN}."
fi

WINE_BIN="$(which "${WINE}")"
WINE_BIN="$(command -v "${WINE}")"
_W_wine_binary_arch="$(winetricks_get_file_arch "${WINE_BIN}")"
if [ -z "${_W_wine_binary_arch}" ]; then
# wine might be a script calling a binary in Wine's bindir.
Expand Down

0 comments on commit e2cf65a

Please sign in to comment.