From 57cc30c57d6dc6ff5d909d05abdf850c5d0ab9db Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Tue, 20 Aug 2024 18:36:52 +0100 Subject: [PATCH] use brackets for `find` parameters --- steamtinkerlaunch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 9080fc68..8079eda7 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240821-1 (rermove-protonupqt-version-file)" +PROGVERS="v14.0.20240821-2 (rermove-protonupqt-version-file)" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -22177,7 +22177,7 @@ function CompatTool { 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 {} \; + 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"