create_addon: do not write usage on non-matching addon-pattern

This commit is contained in:
Sascha Kuehndel (InuSasha) 2018-07-05 16:11:14 +02:00
parent e8c5cfabfe
commit 70db036ca9
No known key found for this signature in database
GPG Key ID: 15FED89617B88D1B

View File

@ -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