mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
create_addon: do not write usage on non-matching addon-pattern
This commit is contained in:
parent
e8c5cfabfe
commit
70db036ca9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user