Skip to content

Commit

Permalink
Merge pull request ClusterLabs#1830 from vvidic/was6
Browse files Browse the repository at this point in the history
WAS6: fix trap condition
  • Loading branch information
oalbrigt committed Jan 2, 2023
2 parents c1dd380 + 59ec978 commit 38c1022
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 38c1022

Please sign in to comment.