From 02e81b137241cf0e253ec996a299ef6f4faf4a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa?= Date: Tue, 18 Dec 2018 02:01:44 +0100 Subject: Discard empty labels --- .travis/labeler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis') 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) -- cgit v1.2.3