mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-22 14:38:04 +01:00
Ask for root password at the beginning of upgrade
This commit is contained in:
parent
d6a8940a3d
commit
76ff1c5b18
1 changed files with 8 additions and 7 deletions
|
@ -1,9 +1,10 @@
|
||||||
function upgrade --wraps=topgrade
|
function upgrade --wraps=topgrade
|
||||||
if not bw login --check
|
if not bw login --check
|
||||||
set -x BW_SESSION (bw login --raw)
|
set -x BW_SESSION (bw login --raw)
|
||||||
end
|
end
|
||||||
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
|
||||||
topgrade
|
sudo ls >/dev/null
|
||||||
|
topgrade
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue