ci: fix ShellCheck dialect and make tool installs fault-tolerant
This commit is contained in:
@@ -8,6 +8,7 @@ NC='\033[0m'
|
||||
|
||||
LOG_FILE=""
|
||||
VERBOSE=false
|
||||
# shellcheck disable=SC2034 # used by lib modules
|
||||
DRY_RUN=false
|
||||
|
||||
log() {
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user