ovn: fix update script

Declaring type on boolean arguments is no longer supported by nushell
This commit is contained in:
Adam Stephens 2024-03-08 22:32:24 -05:00
parent de66856bf8
commit 6995f31229
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env nix-shell
#!nix-shell -i nu -p nushell common-updater-scripts
def main [--lts: bool = false, --regex: string] {
def main [--lts = false, --regex: string] {
let tags = list-git-tags --url=https://github.com/ovn-org/ovn | lines | sort --natural | str replace v ''
let latest_tag = if $regex == null { $tags } else { $tags | find --regex $regex } | last