From b3f4bd9750821787d179340b0d1c7a5490276c10 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 6 Apr 2008 22:24:29 +1000 Subject: Quote filenames in find expression in pacdiff From 41cc28f560bf9843d81ce5fb62b884b6325d06a0 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 6 Apr 2008 22:18:06 +1000 Subject: [PATCH] Quote filenames in find expression in pacdiff Small patch to allow pacdiff to run in /etc. See FS#10090. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- contrib/pacdiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/pacdiff b/contrib/pacdiff index 19a680f1..64936491 100755 --- a/contrib/pacdiff +++ b/contrib/pacdiff @@ -20,7 +20,7 @@ # Original http://phraktured.net/config/bin/pacdiff diffprog=${DIFFPROG:-vimdiff} -for x in $(find /etc/ -name *.pacnew -o -name *.pacorig -o -name *.pacsave) +for x in $(find /etc/ -name "*.pacnew" -o -name "*.pacorig" -o -name "*.pacsave") do echo "File: ${x%.pac*}" chk="$(cmp $x ${x%.pac*})" -- cgit v1.2.3-70-g09d2