ci: fix ShellCheck dialect and make tool installs fault-tolerant
This commit is contained in:
@@ -14,6 +14,7 @@ NC='\033[0m'
|
||||
|
||||
LOG_FILE=""
|
||||
VERBOSE=false
|
||||
# shellcheck disable=SC2034 # used by lib modules
|
||||
DRY_RUN=false
|
||||
|
||||
log() {
|
||||
@@ -134,6 +135,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 ;;
|
||||
@@ -2659,7 +2661,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
|
||||
|
||||
@@ -3232,6 +3235,7 @@ cmd_monitor() {
|
||||
done
|
||||
set -- "${args[@]}"
|
||||
if [ -n "$webhook" ]; then
|
||||
# shellcheck disable=SC2034 # used by lib/discord.sh
|
||||
DISCORD_WEBHOOK="$webhook"
|
||||
fi
|
||||
case "${1:-}" in
|
||||
@@ -3392,6 +3396,7 @@ cmd_interactive_normal() {
|
||||
parse_global_opts() {
|
||||
PARSED_ARGS=()
|
||||
while [ $# -gt 0 ]; do
|
||||
# shellcheck disable=SC2034 # globals used by lib modules
|
||||
case "$1" in
|
||||
--verbose) VERBOSE=true; shift ;;
|
||||
--dry-run) DRY_RUN=true; shift ;;
|
||||
|
||||
Reference in New Issue
Block a user