dynamic_main: Fix array size check, write test case
This commit is contained in:
parent
3830737655
commit
282c2f5b04
2 changed files with 7 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
command -v dedcat || \
|
||||
source "$(dirname ${BASH_SOURCE[0]})/logging.bash"
|
||||
|
||||
[ -z "${fns[@]}" ] && dedcat 'ERROR: Empty or undefined ${fns[@]} array!'
|
||||
[ "${#fns[@]}" -gt 0 ] || dedcat 'ERROR: Empty or undefined ${fns[@]} array!'
|
||||
|
||||
read -d '' HELPSTR <<EOH
|
||||
Usage: $0 OPERATION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue