diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-12-18 02:01:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 02:01:44 +0100 |
commit | 02e81b137241cf0e253ec996a299ef6f4faf4a18 (patch) | |
tree | f444efbb11ee7659ec3dd4c62d73dc2836cb53cd | |
parent | 2995b290815126ffdb60c48be7a560cd1c7fa4f9 (diff) |
Discard empty labels
-rwxr-xr-x | .travis/labeler.sh | 2 |
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) |