fix(shell): address ShellCheck warnings (remove SC2181 checks, safer prompt_secret, add selective suppressions)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
igor04091968
2026-05-07 12:35:23 +03:00
parent 669501f20a
commit c9f3aad89c
8 changed files with 11 additions and 4 deletions
+1
View File
@@ -4,6 +4,7 @@ set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
# shellcheck disable=SC2034
KIT_DIR="install-kit-awindows-20260427-211240"
python - <<'PY'
+4 -2
View File
@@ -21,9 +21,11 @@ prompt_secret() {
if [[ -n "${!var_name:-}" ]]; then
return 0
fi
read -r -s -p "${prompt}: " "$var_name"
local _val
read -r -s -p "${prompt}: " _val
echo
export "$var_name"
printf -v "$var_name" '%s' "$_val"
declare -gx "$var_name"
}
require_cmd git