Skip to content

Commit

Permalink
Added TODO and "# shellcheck disable=2034" to saveOrgVars
Browse files Browse the repository at this point in the history
  • Loading branch information
HanPrower committed Sep 4, 2024
1 parent 5763978 commit 22a1f46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions steamtinkerlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -25333,13 +25333,19 @@ function closeSTL {
# main:#################

function saveOrgVars {
# TODO resolve the unused warnings by dynamically assigning the variables like we do in 'restoreOrgVars'

writelog "INFO" "${FUNCNAME[0]} - Storing some original variables to restore them later" "P"

env | grep "=" | sort -o "$VARSIN"

# shellcheck disable=2034
ORG_LD_PRELOAD="$LD_PRELOAD"
# shellcheck disable=2034
ORG_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
# shellcheck disable=2034
ORG_LC_ALL="$LC_ALL"
# shellcheck disable=2034
ORG_PATH="$PATH"
}

Expand Down

0 comments on commit 22a1f46

Please sign in to comment.