From d0b4ad9dfab6d6211be6c6867101fac91b2931ac Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 15 Nov 2014 11:45:45 +0100 Subject: [PATCH] hooks/post-install/remove-python-bytecode-files: quote arguments properly This fixes the error 'find: paths must precede expression'. --- common/hooks/post-install/02-remove-python-bytecode-files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/post-install/02-remove-python-bytecode-files.sh b/common/hooks/post-install/02-remove-python-bytecode-files.sh index 0250715fdde..db4b355af32 100644 --- a/common/hooks/post-install/02-remove-python-bytecode-files.sh +++ b/common/hooks/post-install/02-remove-python-bytecode-files.sh @@ -1,5 +1,5 @@ # This hook removes python bytecode files (.py[co]). hook() { - find ${PKGDESTDIR} -type f -name *.py[co] -delete + find ${PKGDESTDIR} -type f -name '*.py[co]' -delete }