From da2ed7d4790054c0e4330fb17851cba97bab6212 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Thu, 18 Jun 2015 18:37:29 +0200 Subject: [PATCH] MT#485 Fix 04_template_files.sh, ignore files '*.dpkg-*', e.g. dpkg-bak/dpkg-old/... Change-Id: I6b89633b3d074ee6de9027be0d6196d0ec7a9d0a --- 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 3b9b41a..4b517a9 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 -print0 |xargs -0 dpkg -S >/dev/null 2>"$tmpfile" +find /etc/ngcp-config/templates/ -type f ! -iname "*.dpkg-*" -name *.tt2 -print0 |xargs -0 dpkg -S >/dev/null 2>"$tmpfile" if ! [ -s "$tmpfile" ] ; then echo "1..1"