From c58e999bddf392049fbcbb72b949724e418cc15c Mon Sep 17 00:00:00 2001 From: Andre Marcelo-Tanner Date: Sat, 30 Apr 2016 21:05:21 +0800 Subject: [PATCH] check if env is given first before doing config_section test --- bin/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy b/bin/deploy index 45fe3fa..18dfdce 100755 --- a/bin/deploy +++ b/bin/deploy @@ -307,8 +307,8 @@ revert_to() { # require_env() { - config_section $ENV || abort "[$ENV] config section not defined" test -z "$ENV" && abort " required" + config_section $ENV || abort "[$ENV] config section not defined" } #