From f52f248c1f4d632c70bbea9fd3f583022703b517 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 22 Jun 2015 10:52:12 +0200 Subject: [PATCH] MT#485 Improve file filter to ignore only "*.dpkg-{dist,old,new} Checking only for *.tt2 files isn't enough, we also have *.services + *.postbuild files and want to also catch any files that don't match our file suffix. Change-Id: Ia7477ac45b4fc9e1ab3cc0188c35424bffeceedb --- ce/04_template_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ce/04_template_files.sh b/ce/04_template_files.sh index 4b517a9..077a33e 100755 --- a/ce/04_template_files.sh +++ b/ce/04_template_files.sh @@ -3,7 +3,7 @@ i=1 tmpfile=$(mktemp) -find /etc/ngcp-config/templates/ -type f ! -iname "*.dpkg-*" -name *.tt2 -print0 |xargs -0 dpkg -S >/dev/null 2>"$tmpfile" +find /etc/ngcp-config/templates/ -type f ! \( -name "*.dpkg-dist" -o -name "*.dpkg-old" -o -name "*.dpkg-new" -o -name "*.dpkg-remove" -o -name "*.dpkg-bak" -o -name "*.dpkg-del" \) -print0 |xargs -0 dpkg -S >/dev/null 2>"$tmpfile" if ! [ -s "$tmpfile" ] ; then echo "1..1"