From 57f9410cf01e01a74dc78ce30f45cbede475ecaa Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Wed, 17 Jul 2024 21:58:39 +0100 Subject: [PATCH] shellcheck --- steamtinkerlaunch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index d32eba48..04295771 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -7,7 +7,7 @@ PREFIX="/usr" PROGNAME="SteamTinkerLaunch" NICEPROGNAME="Steam Tinker Launch" -PROGVERS="v14.0.20240712-1" +PROGVERS="v14.0.20240718-1 (use-mostrecent-loginuser-userdatadir)" PROGCMD="${0##*/}" PROGINTERNALPROTNAME="Proton-stl" SHOSTL="stl" @@ -24344,7 +24344,7 @@ function generateSteamShortID { function fillLoginUsersCSV { # Don't overwrite LoginUsersCSV file if it exists and is not blank, only re-create it if SHM dir is cleared # The loginusers are not likely to change after the SHM dir is created so this is a bit more efficient - if [ -f "$LOGINUSERSCSV" ] && [ -s "$LOGINUSERCSV" ]; then + if [ -f "$LOGINUSERSCSV" ] && [ -s "$LOGINUSERSCSV" ]; then writelog "INFO" "${FUNCNAME[0]} - '${LOGINUSERSCSV}' already exists -- Not re-creating" return fi @@ -24354,10 +24354,9 @@ function fillLoginUsersCSV { # Toplevel block in loginusers.vdf is "users", get all block names ("[0-9]+" with one hardcoded indent, because we know we only have 1 indent) # - # TODO it would be nice to have a generic function to get all toplevel VDF block names like this, but = + # TODO it would be nice to have a generic function to get all toplevel VDF block names like this, but # We can't know the pattern and would need to know how to differentiate between a blockname and a property name - # It just si happens for loginusers that it only contains blocks - LOGINUSERIDS=() + # It just so happens for loginusers that it only contains blocks if [ -f "${LOGUVDF}" ]; then writelog "INFO" "${FUNCNAME[0]} - Found loginusers file at '${LOGUVDF}' -- Will attempt to parse this file" mapfile -t LOGINUSERLONGIDS < <(getVdfSection '"users"' "" "" "${LOGUVDF}" | grep -oP '^\t"[0-9]+"' | tr -d '\t"\ ')