From 76ff1c5b1841969936a93dfd4118588ea61853b1 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 2 Mar 2023 18:29:34 +0100 Subject: [PATCH] Ask for root password at the beginning of upgrade --- dot_config/fish/private_functions/upgrade.fish | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dot_config/fish/private_functions/upgrade.fish b/dot_config/fish/private_functions/upgrade.fish index 77d7f65..607b0b5 100644 --- a/dot_config/fish/private_functions/upgrade.fish +++ b/dot_config/fish/private_functions/upgrade.fish @@ -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