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: Remove VERSION.txt and other text files from compatibility tool folder #1151

Merged
merged 3 commits into from
Aug 28, 2024
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
20 changes: 11 additions & 9 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
PREFIX="/usr"
PROGNAME="SteamTinkerLaunch"
NICEPROGNAME="Steam Tinker Launch"
PROGVERS="v14.0.20240828-1"
PROGVERS="v14.0.20240829-1"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -22171,15 +22171,17 @@ function CompatTool {
elif [ "$1" == "del" ]; then
if [ ! -d "$SCTS" ]; then
writelog "SKIP" "${FUNCNAME[0]} - Selected '$1' but '$SCTS' doesn't exist"
return
fi

rm "$SCTS/$PROGCMD" 2>/dev/null
# *.vdf is usually 'compatibilitytool.vdf', *.txt is usually 'VERSION.txt' created by ProtonUp-Qt
find "$SCTS" -maxdepth 1 -type f \( -name "*.vdf" -o -name "*.txt" \) -exec rm {} \;
rmdir "$SCTS"
if [ ! -d "$SCTS" ]; then
writelog "INFO" "${FUNCNAME[0]} - Removed '$SCTS' successfully" "E"
else
rm "$SCTS/$PROGCMD" 2>/dev/null
find "$SCTS" -maxdepth 1 -type f -name "*.vdf" -exec rm {} \;
rmdir "$SCTS"
if [ ! -d "$SCTS" ]; then
writelog "INFO" "${FUNCNAME[0]} - Removed '$SCTS' successfully" "E"
else
writelog "SKIP" "${FUNCNAME[0]} - Tried to carefully remove '$SCTS', but it still exists - any files inside '$SCTS'?" "E"
fi
writelog "SKIP" "${FUNCNAME[0]} - Tried to carefully remove '$SCTS', but it still exists - any files inside '$SCTS'?" "E"
fi
else
if [ ! -d "$SCTS" ]; then
Expand Down