summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-06-21 16:53:13 +0000
committerNicolas Vigier <boklm@mageia.org>2011-06-21 16:53:13 +0000
commita73cfdebff22fb433371b027c24742a2ffc7c76b (patch)
tree03d78c377faeec9a642b2651df640b7cbc0bc8d0 /functions
parent3a69c314c407949f29f59a85413a208137187907 (diff)
downloadmgatools-a73cfdebff22fb433371b027c24742a2ffc7c76b.tar
mgatools-a73cfdebff22fb433371b027c24742a2ffc7c76b.tar.gz
mgatools-a73cfdebff22fb433371b027c24742a2ffc7c76b.tar.bz2
mgatools-a73cfdebff22fb433371b027c24742a2ffc7c76b.tar.xz
mgatools-a73cfdebff22fb433371b027c24742a2ffc7c76b.zip
check arguments
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
+}
+