Skip to content

Commit

Permalink
Refactor mr.bash to sort the list of existing runners
Browse files Browse the repository at this point in the history
  • Loading branch information
vbem committed Oct 11, 2024
1 parent c599801 commit c1f6664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mr.bash
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function mr::listRunners {
log::_ INFO "Listing localhost all existing runners"
run::exists jq || return $?
local users=''
users="$(run::logFailed getent group 'runners' | cut -d: -f4 | tr ',' '\n')" || return $?
users="$(run::logFailed getent group 'runners' | cut -d: -f4 | tr ',' '\n' | sort -g)" || return $?
while read -r user; do
[[ -z "$user" ]] && continue
echo -n "$user"
Expand Down

0 comments on commit c1f6664

Please sign in to comment.