Allow blank descriptions

This commit is contained in:
Hunter Haugen 2017-05-22 17:18:24 -07:00
parent 844e5b0c7f
commit a4bf19d386
Signed by: hunner
GPG key ID: EF99694AA599DDAD

View file

@ -27,7 +27,7 @@ from_sha=$( /bin/echo "$payload" | jq -r '.head.sha')
from_user=$(/bin/echo "$payload" | jq -r '.head.user.login') from_user=$(/bin/echo "$payload" | jq -r '.head.user.login')
from_desc=$(/bin/echo "$payload" | jq -r '.body') from_desc=$(/bin/echo "$payload" | jq -r '.body')
ssh_url=$( /bin/echo "$payload" | jq -r '.head.repo.ssh_url') ssh_url=$( /bin/echo "$payload" | jq -r '.head.repo.ssh_url')
if [ "x" = "x$payload" -o "x" = "x$to_branch" -o "x" = "x$from_ref" -o "x" = "x$from_sha" -o "x" = "x$from_user" -o "x" = "x$from_desc" -o "x" = "x$ssh_url" ] ; then if [ "x" = "x$payload" -o "x" = "x$to_branch" -o "x" = "x$from_ref" -o "x" = "x$from_sha" -o "x" = "x$from_user" -o "x" = "x$ssh_url" ] ; then
echo "Something is missing" echo "Something is missing"
exit 1 exit 1
fi fi