From b378d3a3de405e090ca37e4b758031e9b2219206 Mon Sep 17 00:00:00 2001 From: rayyee Date: Wed, 28 Nov 2018 15:56:32 +0800 Subject: [PATCH] Fixed config_get error that when a directive is obtained, it is misplaced in a multi-env situation. --- bin/deploy | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/deploy b/bin/deploy index 45fe3fa..03cf196 100755 --- a/bin/deploy +++ b/bin/deploy @@ -91,6 +91,7 @@ config_get() { local key=$1 test -n "$key" \ && grep "^\[$ENV" -A 20 $CONFIG \ + | grep "^\[" -B 20 \ | grep "^$key" \ | head -n 1 \ | cut -d ' ' -f 2-999