Преглед изворни кода

match complete branch name

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky пре 6 година
родитељ
комит
4d24261e84
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scripts/analysis/getBranchName.sh

+ 1 - 1
scripts/analysis/getBranchName.sh

@@ -5,5 +5,5 @@
 if [ -z $3 ] ; then
 if [ -z $3 ] ; then
     echo "master";
     echo "master";
 else
 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
 fi