Ask for root password at the beginning of upgrade

This commit is contained in:
Gabriel Augendre 2023-03-02 18:29:34 +01:00
parent d6a8940a3d
commit 76ff1c5b18

View file

@ -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