Fix not having a function in bash template

This commit is contained in:
Salt 2021-03-06 05:37:02 -06:00
parent 3594b1c2a2
commit eb58893b48

View File

@ -66,6 +66,14 @@ has() {
done done
return 0 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 # Core program functions
printhelp() { printhelp() {