templatize upgrade function

This commit is contained in:
Gabriel Augendre 2024-01-20 15:49:42 +01:00
parent 10c72dd8a2
commit 198914d3fd

View file

@ -6,6 +6,8 @@ function upgrade --wraps=topgrade
if not bw unlock --check if not bw unlock --check
set -x BW_SESSION (bw unlock --raw) set -x BW_SESSION (bw unlock --raw)
end end
{{ if get . "sudo" }}
sudo ls >/dev/null sudo ls >/dev/null
{{ end }}
topgrade $argv topgrade $argv
end end