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 +- hooks/minimal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'hooks') 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 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