mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Nuweb drop
Signed-off-by: root <root@tdm-cloud.(none)>
This commit is contained in:
parent
ee9a720f67
commit
a7b55553ad
62 changed files with 1772 additions and 608 deletions
13
inc/nux/array.nuxsh.sh
Executable file
13
inc/nux/array.nuxsh.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
@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
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue