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: replace NEW_WINEPREFIX with LAST_WINEPREFIX #2326

Merged
merged 1 commit into from
Jan 24, 2025
Merged
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
8 changes: 4 additions & 4 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -4361,17 +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
NEW_WINEPREFIX="${WINETRICKS_ORIGINAL_WINEPREFIX}"
WINEPREFIX="${WINETRICKS_ORIGINAL_WINEPREFIX}"
else
NEW_WINEPREFIX="${W_PREFIXES_ROOT}/$1"
WINEPREFIX="${W_PREFIXES_ROOT}/$1"
fi

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

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

Expand Down
Loading