From 889489c8ce3339ca3b6cab45ec58e73cca40a51a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 10 Nov 2007 15:40:53 +0100 Subject: Using shell redirection to truncate rather than additional commands/forks/files, thanks to Justin Pryzby . --- hooks/minimal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hooks/minimal') diff --git a/hooks/minimal b/hooks/minimal index 3886d9a5f..ff57deb2d 100755 --- a/hooks/minimal +++ b/hooks/minimal @@ -32,5 +32,5 @@ mkdir -p /var/lib/apt/lists/partial # Truncating logs for FILE in $(find /var/log/ -type f) do - cat < /dev/null > $FILE + : > ${FILE} done -- cgit v1.2.3