Extract body outside if logic
@@ -5,13 +5,14 @@ if [ $# -lt 1 ]
exit 1
fi
-if [ "$1" == "master" ]
- then
body='{
"request": {
- "branch":master
+"branch":"master"
}}'
+if [ "$1" == "master" ]
+ then
+
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
