ci: fix ShellCheck dialect and make tool installs fault-tolerant

This commit is contained in:
2026-11-09 10:36:49 +08:00
parent b4de699a32
commit dea4e0bd08
6 changed files with 37 additions and 7 deletions
+1
View File
@@ -8,6 +8,7 @@ NC='\033[0m'
LOG_FILE=""
VERBOSE=false
# shellcheck disable=SC2034 # used by lib modules
DRY_RUN=false
log() {
+1
View File
@@ -6,6 +6,7 @@ load_config() {
while IFS='=' read -r key value || [ -n "$key" ]; do
key="${key// /}"
[ -z "$key" ] && continue
# shellcheck disable=SC2034 # globals used by lib modules
case "$key" in
WEBHOOK) DISCORD_WEBHOOK="$value" ;;
LOG_LEVEL) [ "$value" = "verbose" ] && VERBOSE=true ;;
+2 -1
View File
@@ -22,7 +22,8 @@ run_demo() {
echo ""
step "2. Running suppress_enrollment..."
DRY_RUN=false
# shellcheck disable=SC2034 # used by lib modules
DRY_RUN=false
suppress_enrollment "$demo_dir" 2>/dev/null || true
sleep 1