updated pingdom_foreach_check.sh

pull/4/head
Hari Sekhon 1 year ago
parent 7d58f5c567
commit ff0ce309f2

@ -64,5 +64,7 @@ while read -r check_id check_name; do
cmd=("${cmd[@]//\{check_name\}/$check_name}")
cmd=("${cmd[@]//\{id\}/$check_id}")
cmd=("${cmd[@]//\{name\}/$check_name}")
"${cmd[@]}"
# need eval'ing to able to inline quoted script
# shellcheck disable=SC2294
eval "${cmd[@]}"
done

Loading…
Cancel
Save