mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-22 06:28:08 +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
|
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
|
Loading…
Reference in a new issue