blob: 81c89311a7cf9cb7fe12dff74f74009cd5a45e7c [file] [log] [blame]
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07001has() {
2 local p=$1
3 shift
4 local x
5 for x in "$@"; do
6 [[ "${x}" == "${p}" ]] && return 0
7 done
8 return 1
9}