From aa189b0508256710bd407008876f8ef51e1578d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 6 May 2009 22:35:53 +0000 Subject: [PATCH] - handle missing .cvsignore Changed files: builder.sh -> 1.581 --- builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder.sh b/builder.sh index c9fe708..3319926 100644 --- a/builder.sh +++ b/builder.sh @@ -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 } -- 2.44.0