match complete branch name

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-12-11 13:28:07 +01:00
parent a353e3ca6a
commit 4d24261e84
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -5,5 +5,5 @@
if [ -z $3 ] ; then
echo "master";
else
curl 2>/dev/null -u $1:$2 https://api.github.com/repos/nextcloud/android/pulls/$3 | grep \"ref\": | grep -v master | cut -d"\"" -f4
curl 2>/dev/null -u $1:$2 https://api.github.com/repos/nextcloud/android/pulls/$3 | grep \"ref\": | grep -v '"master"' | cut -d"\"" -f4
fi