/[soft]/mgatools/trunk/functions
ViewVC logotype

Annotation of /mgatools/trunk/functions

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1703 - (hide annotations) (download)
Tue Jun 21 16:53:13 2011 UTC (12 years, 10 months ago) by boklm
File size: 321 byte(s)
check arguments
1 boklm 1698 #!/bin/sh
2    
3     . /etc/mgatools.conf
4    
5     function isingroup()
6     {
7     grp="$1"
8     for group in `groups`
9     do if [ "$grp" = "$group" ]
10     then
11     return 0
12     fi
13     done
14     return 1
15     }
16    
17 boklm 1703 function inlist()
18     {
19     k="$1"
20     list="$2"
21     for e in $list
22     do
23     if [ a"$k" = a"$e" ]
24     then
25     return 0
26     fi
27     done
28     return 1
29     }
30    

  ViewVC Help
Powered by ViewVC 1.1.30