diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-10 15:40:53 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:28 +0100 |
commit | 889489c8ce3339ca3b6cab45ec58e73cca40a51a (patch) | |
tree | de2933b3f24f5168728a46565eb662c38195cf37 /hooks | |
parent | 7fc3e5c0e408a206184fddf6cda1ffc8831078bd (diff) | |
download | vyos-live-build-889489c8ce3339ca3b6cab45ec58e73cca40a51a.tar.gz vyos-live-build-889489c8ce3339ca3b6cab45ec58e73cca40a51a.zip |
Using shell redirection to truncate rather than additional commands/forks/files, thanks to Justin Pryzby <jpryzby@quoininc.com>.
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/mini | 2 | ||||
-rwxr-xr-x | hooks/minimal | 2 |
2 files changed, 2 insertions, 2 deletions
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 |