Skip to content

Commit

Permalink
misc: Remove VERSION.txt and other text files from compatibility to…
Browse files Browse the repository at this point in the history
…ol folder
  • Loading branch information
sonic2kk committed Aug 20, 2024
1 parent 8756dc8 commit a2f5039
Showing 1 changed file with 11 additions and 9 deletions.
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.20240727-1"
PROGVERS="v14.0.20240821-1 (rermove-protonupqt-version-file)"
PROGCMD="${0##*/}"
PROGINTERNALPROTNAME="Proton-stl"
SHOSTL="stl"
Expand Down Expand Up @@ -22172,15 +22172,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" -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

0 comments on commit a2f5039

Please sign in to comment.