Skip to content

Commit c1f6664

Browse files
committed
Refactor mr.bash to sort the list of existing runners
1 parent c599801 commit c1f6664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mr.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function mr::listRunners {
333333
log::_ INFO "Listing localhost all existing runners"
334334
run::exists jq || return $?
335335
local users=''
336-
users="$(run::logFailed getent group 'runners' | cut -d: -f4 | tr ',' '\n')" || return $?
336+
users="$(run::logFailed getent group 'runners' | cut -d: -f4 | tr ',' '\n' | sort -g)" || return $?
337337
while read -r user; do
338338
[[ -z "$user" ]] && continue
339339
echo -n "$user"

0 commit comments

Comments
 (0)