diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-06-21 16:53:13 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-06-21 16:53:13 +0000 |
commit | a73cfdebff22fb433371b027c24742a2ffc7c76b (patch) | |
tree | 03d78c377faeec9a642b2651df640b7cbc0bc8d0 /functions | |
parent | 3a69c314c407949f29f59a85413a208137187907 (diff) | |
download | mgatools-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-- | functions | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 +} + |