fix: Declare and assign separately to avoid masking return values.

This commit is contained in:
Jose Diaz-Gonzalez
2018-03-03 18:33:16 -05:00
parent 2b0d34d0db
commit 726c1571eb
2 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,8 @@ git_deploy_method() {
declare desc="git deploy-method plugin trigger"
declare trigger="git_deploy_method"
declare APP="$1"
local STDIN=$(cat)
local STDIN
STDIN=$(cat)
# bail if another method is detected
if [[ -n "$STDIN" ]]; then

View File

@@ -5,7 +5,8 @@ tar_deploy_method() {
declare desc="tar deploy-method plugin trigger"
declare trigger="tar_deploy_method"
declare APP="$1"
local STDIN=$(cat)
local STDIN
STDIN=$(cat)
# bail if another method is detected
if [[ -n "$STDIN" ]]; then