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

This commit is contained in:
Jose Diaz-Gonzalez committed 2018-03-03 18:33:16 -05:00
1 parent 2b0d34d0db
commit 726c1571eb
2 files changed
+4 -2

No files matched your search

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