mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-12 17:53:57 +01:00
templatize upgrade function
This commit is contained in:
parent
10c72dd8a2
commit
198914d3fd
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ function upgrade --wraps=topgrade
|
|||
if not bw unlock --check
|
||||
set -x BW_SESSION (bw unlock --raw)
|
||||
end
|
||||
{{ if get . "sudo" }}
|
||||
sudo ls >/dev/null
|
||||
{{ end }}
|
||||
topgrade $argv
|
||||
end
|
Loading…
Reference in a new issue