summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-10 15:40:53 +0100
committerDaniel Baumann <daniel@debian.org>2007-11-10 15:40:53 +0100
commit51cfe60fc6b75ee214aff74a1e56543a98fd1f20 (patch)
treede2933b3f24f5168728a46565eb662c38195cf37 /hooks
parent7cacae2d940e17a7627413bc934ea198de0ab486 (diff)
downloadvyos-live-build-51cfe60fc6b75ee214aff74a1e56543a98fd1f20.tar.gz
vyos-live-build-51cfe60fc6b75ee214aff74a1e56543a98fd1f20.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-xhooks/mini2
-rwxr-xr-xhooks/minimal2
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