From bde0812eaf835321d383c9defc50fafe8bc7a855 Mon Sep 17 00:00:00 2001 From: garaiza-93 <57430880+garaiza-93@users.noreply.github.com> Date: Wed, 7 Jun 2023 15:46:07 -0500 Subject: [PATCH] ensure write permissions before and after lang file update (#824) --- steamtinkerlaunch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index fa627b2a..b873c5d9 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -2263,8 +2263,10 @@ function loadLangFile { if [ -n "$UPDATELANGFILEPATH" ]; then writelog "INFO" "${FUNCNAME[0]} - Found lang file to replace the existing user-installed file with under '$UPDATELANGFILEPATH'" + chmod +w "$LAFI" #Ensure write permissions before removing rm "$LAFI" cp "$UPDATELANGFILEPATH" "$LAFI" + chmod -R +w "$STLLANGDIR" #Ensure write permissions for next update! else writelog "INFO" "${FUNCNAME[0]} - No lang file to replace existing user-installed file with, not updating langfile" fi