From 58f78a8be4594357c600f2360d02eb3a11d25277 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Sun, 16 Jun 2024 04:33:11 +0100 Subject: [PATCH] only match on whole words to prevent command overlap Only match on 'otr' and not 'thisisotrblahblah'. If commands contain the match pattern as a substring, this will prevent matching. For example if we had a 'one' command, this will prevent 'one' and 'onetimerun' from being matched together. --- steamtinkerlaunch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 86c5a767..eea39579 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240617-1 (fix-gamelaunch-steamappscommon)" +PROGVERS="v14.0.20240617-2 (fix-gamelaunch-steamappscommon)" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -26772,7 +26772,7 @@ function main { commandline "$@" # HACK: Since we check for steamapps/common ($SAC), commands which contain this (such as a one-time run path) will incorrectly get triggered as a game launch # As a workaround, skip a hardcoded set of commands and pass directly to commandline (i.e. if we have OTR as our first option, pass down to commandline function and run otr) - elif grep -qE "otr|onetimerun" <<< "${1}"; then + elif grep -qwE "otr|onetimerun" <<< "${1}"; then commandline "$@" else setGameVars "$@"