From 70db036ca9d55652c94793ee4e929e0434162056 Mon Sep 17 00:00:00 2001 From: "Sascha Kuehndel (InuSasha)" Date: Thu, 5 Jul 2018 16:11:14 +0200 Subject: [PATCH] create_addon: do not write usage on non-matching addon-pattern --- scripts/create_addon | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/create_addon b/scripts/create_addon index 1d11ad6449..d20197449a 100755 --- a/scripts/create_addon +++ b/scripts/create_addon @@ -76,8 +76,9 @@ function find_addons() { local _count=$(wc -w <<< $_addons) if [ "$_count" == 0 ]; then - printf "$(print_color CLR_ERROR "ERROR: '$1' matches nothing...")\n\n" ' '>&$SILENT_OUT - usage 1 + printf "$(print_color CLR_ERROR "ERROR: '$1' matches nothing...")\n" ' '>&$SILENT_OUT + printf "for more informations type: ./scripts/create_addon --help\n" ' '>&$SILENT_OUT + exit 1 fi echo $_addons