]> andersk Git - moira.git/commitdiff
specify a file for awk to operate on, and add some missing $'s.
authorzacheiss <zacheiss>
Mon, 10 Apr 2000 19:40:07 +0000 (19:40 +0000)
committerzacheiss <zacheiss>
Mon, 10 Apr 2000 19:40:07 +0000 (19:40 +0000)
gen/acl.sh

index 69d587c38eb2605da9553dc8f4daa7e884f5a48f..463401b57e871adf617af02e083da12086063434 100755 (executable)
@@ -29,7 +29,7 @@ for file in `find . -type f -print | sed -e 's/^\.//'`; do
            if egrep -s ^root: .$file; then
                :
            else
-               status=MR_MISSINGFILE
+               status=$MR_MISSINGFILE
                break
            fi
         fi
@@ -37,8 +37,8 @@ for file in `find . -type f -print | sed -e 's/^\.//'`; do
        # Make sure that there is a head file, or that the generated
        # file contains a group with gid 0.
        if [ ! -f $file.head ]; then
-           if awk -F: '$3 == "0" { exit 1; }'; then
-               status=MR_MISSINGFILE
+           if awk -F: '$3 == "0" { exit 1; }' $file; then
+               status=$MR_MISSINGFILE
                break
            fi
         fi
This page took 0.039447 seconds and 5 git commands to generate.