summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/labeler.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis/labeler.sh b/.travis/labeler.sh
index 204765104c..23896e3606 100755
--- a/.travis/labeler.sh
+++ b/.travis/labeler.sh
@@ -8,7 +8,7 @@ new_labels() {
ISSUE="$1"
URL="https://api.github.com/repos/netdata/netdata/issues/$ISSUE/labels"
# deduplicate array and add quotes
- SET=( $(for i in "${@:2}"; do echo "\"$i\""; done | sort -u) )
+ SET=( $(for i in "${@:2}"; do [ "$i" != "" ] && echo "\"$i\""; done | sort -u) )
# implode array to string
LABELS="${SET[*]}"
# add commas between quotes (replace spaces)