A collection of shell function for provisioning tasks.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
193 B

has_class() {
if [ 1 -ne $# ]
then
logger -p syslog.err 'has_class: no class given'
exit 1
fi
local CHECK=" ${CLASSES}"
test "${CHECK}" != "${CHECK% ${1} *}"
}
# vim: set ts=4 sw=4: