parameterize this script better

This commit is contained in:
Daylin Morgan 2024-08-08 14:18:20 -05:00
parent 436a71dc26
commit fb136b212a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -59,6 +59,7 @@ def check-exe [] {
}
def compare-versions [] {
each {||
let repo = $in
let $bin = $repo | repo-to-bin
if not ($bin | check-exe) { return }
@ -70,6 +71,7 @@ current:
($current)
"
}
}
[
@ -83,5 +85,5 @@ current:
zyedidia/eget
prefix-dev/pixi
]
| each {|| $in | compare-versions}
| compare-versions
| ignore