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