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

misc: don't initialize the Wine prefix before every single verb #2317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
10 changes: 8 additions & 2 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -4361,11 +4361,17 @@ winetricks_set_wineprefix()
# Note: these are arch independent, but are needed by some arch dependent variables
# Defining here to avoid having two arch checks:
if ! test "$1"; then
WINEPREFIX="${WINETRICKS_ORIGINAL_WINEPREFIX}"
NEW_WINEPREFIX="${WINETRICKS_ORIGINAL_WINEPREFIX}"
else
WINEPREFIX="${W_PREFIXES_ROOT}/$1"
NEW_WINEPREFIX="${W_PREFIXES_ROOT}/$1"
fi

if test "${WINEPREFIX}" = "${NEW_WINEPREFIX}"; then
# A previous verb already set the prefix
return
fi

WINEPREFIX="${NEW_WINEPREFIX}"
export WINEPREFIX
w_try_mkdir "$(dirname "${WINEPREFIX}")"

Expand Down
Loading