fix: Declare and assign separately to avoid masking return values.
This commit is contained in:
1 parent
2b0d34d0db
commit
726c1571eb
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user