blob: 81c89311a7cf9cb7fe12dff74f74009cd5a45e7c [file] [log] [blame]
has() {
local p=$1
shift
local x
for x in "$@"; do
[[ "${x}" == "${p}" ]] && return 0
done
return 1
}