From 722564b2da81b64059971c28bfac1b404c779223 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Fri, 1 Apr 2016 13:55:25 +0900 Subject: [PATCH] Fix ignored settings in the CHECKS file --- plugins/checks/check-deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/checks/check-deploy b/plugins/checks/check-deploy index e2a15477e..80f3b1915 100755 --- a/plugins/checks/check-deploy +++ b/plugins/checks/check-deploy @@ -131,8 +131,8 @@ checks_check_deploy() { line=$(strip_inline_comments "$line") # Name/value pair if [[ "$line" =~ ^.+= ]]; then - NAME=${TRIM%=*} - VALUE=${TRIM#*=} + NAME=${line%=*} + VALUE=${line#*=} [[ "$NAME" = "WAIT" ]] && local WAIT=$VALUE [[ "$NAME" = "TIMEOUT" ]] && local TIMEOUT=$VALUE [[ "$NAME" = "ATTEMPTS" ]] && local ATTEMPTS=$VALUE