From 22a1f463823916eff52589d0d9a7b10b5730bb2e Mon Sep 17 00:00:00 2001 From: HanPrower <1781312+HanPrower@users.noreply.github.com> Date: Wed, 4 Sep 2024 08:43:31 +0100 Subject: [PATCH] Added TODO and "# shellcheck disable=2034" to `saveOrgVars` --- steamtinkerlaunch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/steamtinkerlaunch b/steamtinkerlaunch index 69359fcd..1d875011 100755 --- a/steamtinkerlaunch +++ b/steamtinkerlaunch @@ -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" }