diff --git a/config.known-users.json b/config.known-users.json index 1962b1c..dd7dfa3 100644 --- a/config.known-users.json +++ b/config.known-users.json @@ -97,6 +97,7 @@ "thoughtpolice", "ts468", "ttuegel", + "unode", "vbgl", "vcunat", "viric", diff --git a/scripts/update-known-users.sh b/scripts/update-known-users.sh index 996700d..2bccf0d 100755 --- a/scripts/update-known-users.sh +++ b/scripts/update-known-users.sh @@ -15,14 +15,14 @@ function fetch_users() { | jq 'map(.login | ascii_downcase)' } -echo '[]' > "$accumulator" +cp ./config.extra-known-users.json "$accumulator" page=0 while true; do page=$((page + 1)) fetch_users "$page" > "$scratch" - jq -s '.[0] + .[1]' "$accumulator" "$scratch" > "$result" + jq -s '.[0] + .[1] | sort' "$accumulator" "$scratch" > "$result" mv "$result" "$accumulator" if [ $(jq -r 'length' "$scratch") -eq 0 ]; then