]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - builder.sh
- handle missing .cvsignore
[packages/rpm-build-tools.git] / builder.sh
index c9fe708dd4b465d6e3f94c48f7652526bfcd87fd..33199265bfcdc9730b7e5f89aa555b54275e13be 100644 (file)
@@ -831,7 +831,7 @@ cvsignore_df() {
        cvsignore=${PACKAGE_DIR}/.cvsignore
 
        # add only if not yet there
-       if awk -vf="$1" '$0 == f {exit 1}' $cvsignore; then
+       if ! awk -vf="$1" -vc=1 '$0 == f { c = 0 } END { exit c }' $cvsignore 2>/dev/null; then
                echo "$1" >> $cvsignore
        fi
 }
This page took 0.02902 seconds and 4 git commands to generate.