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:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user