From: Lorin Hochstein Date: Fri, 13 Jan 2017 05:53:35 +0000 (-0800) Subject: Proper bash string comparison X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=103c7f671264d8c0699ee6b1a6b4bb4f42be6539;p=ansiblebook.git Proper bash string comparison --- diff --git a/ch10/playbooks/library/can_reach_bash b/ch10/playbooks/library/can_reach_bash index 36824b8..ccc2133 100644 --- a/ch10/playbooks/library/can_reach_bash +++ b/ch10/playbooks/library/can_reach_bash @@ -7,8 +7,7 @@ port=`jq -r .port < $1` timeout=`jq -r .timeout < $1` # Default timeout=3 - -if [[ $timeout -eq "null" ]]; then +if [[ $timeout = null ]]; then timeout=3 fi