summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions14
1 files changed, 14 insertions, 0 deletions
diff --git a/functions b/functions
index d612ce3..9891247 100644
--- a/functions
+++ b/functions
@@ -14,3 +14,17 @@ function isingroup()
return 1
}
+function inlist()
+{
+ k="$1"
+ list="$2"
+ for e in $list
+ do
+ if [ a"$k" = a"$e" ]
+ then
+ return 0
+ fi
+ done
+ return 1
+}
+