Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup internal used environment variable WINE with absolute wine path #2320

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove obsolete file check on absolute path of wine executable
The additional check as to whether the absolute path of wine
is a file is superfluous, as the executability is checked
beforehand.
rhabacker committed Jan 15, 2025
commit 9131317c715277c526cd7ace74bc5abdf8e7d7bd
2 changes: 1 addition & 1 deletion src/winetricks
Original file line number Diff line number Diff line change
@@ -4873,7 +4873,7 @@ winetricks_wine_setup()
WINETRICKS_ORIGINAL_WINEPREFIX="${HOME}/.wine"
fi
_abswine="$(command -v "${WINE}" 2>/dev/null)"
if ! test -x "${_abswine}" || ! test -f "${_abswine}"; then
if ! test -x "${_abswine}"; then
w_die "WINE is ${WINE}, which is neither on the path nor an executable file"
fi
unset _abswine