Permalink
Browse files

Fixed if statement

  • Loading branch information...
1 parent 2ea6da1 commit 69b9708a00b60dd148a9e5ebd83641708e276063 @paulrobinson paulrobinson committed Oct 2, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 scripts/hudson/narayana.sh
@@ -8,14 +8,14 @@ function comment_on_pull
{
if [ "$COMMENT_ON_PULL" = "" ]; then return; fi
- PULL_NUMBER=$(echo $GIT_BRANCH | awk -F 'pull' '{ print $2 }' | awk -F '/' '{ print $2 }')
- if [ "$PULL_NUMBER" != "" ] then
- {
- JSON="{ \"body\": \"$1\" }"
- curl -d "$JSON" -ujbosstm-bot:$BOT_PASSWORD https://api.github.com/repos/$GIT_ACCOUNT/$GIT_REPO/issues/$PULL_NUMBER/comments
- } else {
+ PULL_NUMBER=$(echo $GIT_BRANCH | awk -F 'pull' '{ print $2 }' | awk -F '/' '{ print $2 }')
+ if [ "$PULL_NUMBER" != "" ]
+ then
+ JSON="{ \"body\": \"$1\" }"
+ curl -d "$JSON" -ujbosstm-bot:$BOT_PASSWORD https://api.github.com/repos/$GIT_ACCOUNT/$GIT_REPO/issues/$PULL_NUMBER/comments
+ else
echo "Not a pull request, so not commenting"
- }
+ fi
}
#BUILD NARAYANA WITH FINDBUGS

0 comments on commit 69b9708

Please sign in to comment.