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/mini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hooks/mini') diff --git a/hooks/mini b/hooks/mini index 491091463..c33186e10 100755 --- a/hooks/mini +++ b/hooks/mini @@ -40,5 +40,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