Skip to content

Commit

Permalink
shell fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fqjony committed Nov 28, 2024
1 parent 008cb05 commit 18615b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/worker_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ get_config_section() {

# Attempt to extract the section and handle missing/null cases
local extracted_section
extracted_section=$(echo "$config_json" | jq -r ".config.${section} // empty" 2>/dev/null)

if [[ $? -ne 0 ]]; then
if ! extracted_section=$(echo "$config_json" | jq -r ".config.${section} // empty" 2>/dev/null); then
log_error "Failed to parse section '${section}' from configuration."
return 1
fi
Expand Down

0 comments on commit 18615b7

Please sign in to comment.