Fix incorrect test command

This commit is contained in:
Ivan Starkov
2016-03-14 14:37:19 +03:00
committed by cybice
parent d521932dcb
commit 34a881f917

View File

@@ -56,7 +56,7 @@ git_hook_cmd() {
# shellcheck disable=SC2086
plugn trigger receive-app $APP $newrev
else
if test -f "$PLUGIN_PATH"/enabled/*/receive-branch; then
if [[ $(find "$PLUGIN_PATH"/enabled/*/receive-branch 2>/dev/null | wc -l) != 0 ]]; then
# shellcheck disable=SC2086
plugn trigger receive-branch $APP $newrev $refname
else