12 lines
158 B
Bash
Executable File
12 lines
158 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
function shell_contains () {
|
|
local e
|
|
for e in "${@:2}"; do
|
|
[[ "$1" == *"$e"* ]] && return 0
|
|
done
|
|
return 1
|
|
}
|
|
|
|
shell_contains
|