14 lines
229 B
Bash
14 lines
229 B
Bash
#!/bin/bash
|
|
#remaster lib
|
|
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
|
|
|
|
#<function> [param]
|
|
function <function>() {
|
|
#Code of <function>
|
|
}
|
|
|
|
#this func is standalone executable
|
|
[ -n "$1" ] && {
|
|
<function> $@
|
|
}
|