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