Skip to content

Commit

Permalink
ensure write permissions before and after lang file update (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
garaiza-93 authored Jun 7, 2023
1 parent d57e572 commit bde0812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bde0812

Please sign in to comment.