mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-21 22:18:07 +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
|
||||
if not bw login --check
|
||||
set -x BW_SESSION (bw login --raw)
|
||||
end
|
||||
if not bw unlock --check
|
||||
set -x BW_SESSION (bw unlock --raw)
|
||||
end
|
||||
topgrade
|
||||
if not bw login --check
|
||||
set -x BW_SESSION (bw login --raw)
|
||||
end
|
||||
if not bw unlock --check
|
||||
set -x BW_SESSION (bw unlock --raw)
|
||||
end
|
||||
sudo ls >/dev/null
|
||||
topgrade
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue