1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00
nux-env/inc/nux/array.nuxsh.sh
root a7b55553ad Nuweb drop
Signed-off-by: root <root@tdm-cloud.(none)>
2019-03-09 12:32:11 +01:00

13 lines
217 B
Bash
Executable file

@namespace nux.array {
function :contains array value {
local array_ref="$array[@]";
for c in "${!array_ref}"; do
if [ "$c" == "$value" ]; then
return 0;
fi
done
return 1
}
}