chore: consolidate on single method to redirect stdout/stderr to /dev/null

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-18 14:07:09 -05:00
parent 6359404ef3
commit d5ea97f7b0
2 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ trigger-git-git-from-directory() {
trap "rm -rf '$TMP_WORK_DIR' '$TMP_WORK_DIR_2' >/dev/null" RETURN INT TERM EXIT
local has_code=false
if fn-git-cmd "$APP_ROOT" rev-parse "$DOKKU_DEPLOY_BRANCH" >/dev/null 2>&1; then
if fn-git-cmd "$APP_ROOT" rev-parse "$DOKKU_DEPLOY_BRANCH" &>/dev/null; then
has_code=true
fi