diff --git a/dot_config/fish/private_functions/upgrade.fish.tmpl b/dot_config/fish/private_functions/upgrade.fish.tmpl index 5152ead..aba8a7a 100644 --- a/dot_config/fish/private_functions/upgrade.fish.tmpl +++ b/dot_config/fish/private_functions/upgrade.fish.tmpl @@ -6,8 +6,8 @@ function upgrade --wraps=topgrade if not bw unlock --check set -x BW_SESSION (bw unlock --raw) end - {{ if get . "sudo" }} + {{- if get . "sudo" }} sudo ls >/dev/null - {{ end }} + {{- end }} topgrade $argv end