Added $() around commands

pull/1246/head
Christopher Liu 5 years ago committed by Christopher Liu
parent 7d7ba13d4c
commit 071ec08b34
  1. 4
      scripts/pagerduty.sh

@ -36,8 +36,8 @@ delay=60
### Pagerduty
if [[ $(($curtime - $latest)) -gt $delay ]]; then
# Trigger an alert
trigger=curl -X POST -H "$HEADER" -d "$TRIGGER" "$POSTURL"
trigger=$(curl -X POST -H "$HEADER" -d "$TRIGGER" "$POSTURL")
else
# Resolve an alert
resolve=curl -X POST -H "$HEADER" -d "$RESOLVE" "$POSTURL"
resolve=$(curl -X POST -H "$HEADER" -d "$RESOLVE" "$POSTURL")
fi

Loading…
Cancel
Save