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,10 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
fns=( hello )
|
||||
fns=( hello hi )
|
||||
|
||||
hello() {
|
||||
[ "$1" == help ] && echo -n "Say \"hello.\"" && return 0
|
||||
echo hello.
|
||||
}
|
||||
|
||||
hi() {
|
||||
[ "$1" == help ] && echo -n "Say \"hi.\"" && return 0
|
||||
echo hi.
|
||||
}
|
||||
|
||||
. "$(dirname "$0")/../dynamic_main.bash"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue