mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 10:29:01 +03:00
drum: Ensure dojo prompt on-boot
The previous method for doing this relied on "dojo" being first when sorting alphabetically, which is not the case anymore.
This commit is contained in:
parent
79544a03d0
commit
9d63a3e9c7
@ -273,9 +273,14 @@
|
||||
::
|
||||
++ se-adit :: update servers
|
||||
^+ .
|
||||
:: ensure dojo connects after talk
|
||||
=* dojo-on-top aor
|
||||
%+ roll (sort ~(tap in ray) dojo-on-top)
|
||||
%+ roll
|
||||
:: ensure dojo is first in the list,
|
||||
:: guaranteeing its display on-boot.
|
||||
::
|
||||
%+ sort ~(tap in ray)
|
||||
|= [a=well:gall b=well:gall]
|
||||
?: |(=(%dojo q.a) =(%dojo q.b)) =(%dojo q.a)
|
||||
(aor a b)
|
||||
=< .(con +>)
|
||||
|: $:{wel/well:gall con/_..se-adit} ^+ con
|
||||
=. +>.$ con
|
||||
|
Loading…
Reference in New Issue
Block a user