diff --git a/.config/fish/functions/newrepo.fish b/.config/fish/functions/newrepo.fish index f68c90bc..0619ef4e 100644 --- a/.config/fish/functions/newrepo.fish +++ b/.config/fish/functions/newrepo.fish @@ -10,14 +10,16 @@ function newrepo --argument-names name # check that some visibility is set set -l error_messages if not set -lq _flag_p && not set -lq _flag_P - set -a error_messages 'ERROR: Visibility must be either public or private!' \n + set -a error_messages 'ERROR: Visibility must be either public or private!' end # check that a provider is set if not set -lq _flag_a && not set -lq _flag_s && not set -lq _flag_g - set -a error_messages 'ERROR: Provider must be set!' \n + set -a error_messages 'ERROR: Provider must be set!' end if test (count $error_messages) -ne 0 - echo $error_messages + for i in $error_messages + echo $i + end help return 1 end