Skip to content

Commit

Permalink
WAS6: fix trap condition
Browse files Browse the repository at this point in the history
shellcheck was failing on the invalid condition
  • Loading branch information
vvidic committed Dec 26, 2022
1 parent c1dd380 commit 59ec978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heartbeat/WAS6
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ WAS_report_status() {
# This is actually faster than WAS_status above...
#
WAS_monitor() {
trap '[ -z "$tmpfile" || rmtempfile "$tmpfile"' 0
trap '[ -z "$tmpfile" ] || rmtempfile "$tmpfile"' 0
tmpfile=`maketempfile` || exit 1
SnoopPort=`GetWASSnoopPort $1`
output=`$WGET -nv -O$tmpfile http:https://localhost:$SnoopPort/snoop 2>&1`
Expand Down

0 comments on commit 59ec978

Please sign in to comment.