From 280592de235dee9b894c2ec2b8612b1632a107ae Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 2 May 2025 18:35:13 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-02 18:35:13 --- .config/fish/functions/newrepo.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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