From 103c7f671264d8c0699ee6b1a6b4bb4f42be6539 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Thu, 12 Jan 2017 21:53:35 -0800 Subject: [PATCH] Proper bash string comparison --- ch10/playbooks/library/can_reach_bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.44.0