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