Fix not having a function in bash template
This commit is contained in:
parent
3594b1c2a2
commit
eb58893b48
@ -66,6 +66,14 @@ has() {
|
||||
done
|
||||
return 0
|
||||
}
|
||||
validateline() {
|
||||
# Takes a line and errors if it's just whitespace or a comment
|
||||
local linenows=${1//[[:space:]]}
|
||||
if ! [ "${1#\#}" = "$1" ] || [ -z "$linenows" ]; then
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
# Core program functions
|
||||
printhelp() {
|
||||
|
Loading…
Reference in New Issue
Block a user