summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-24 08:47:42 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:27 +0100
commitf2734daf0a9519db6b303683d3ac413a20d56e2a (patch)
tree6d9d0c85e7141243e0b40adcd847d1cc7c479448 /hooks
parent81a76d4adc812c16be8238fedda25bd43ab3a379 (diff)
downloadvyos-live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.tar.gz
vyos-live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.zip
Replacing backticks with POSIX expression.
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 c074fe71b..dda40bcf5 100755
--- a/hooks/mini
+++ b/hooks/mini
@@ -38,7 +38,7 @@ rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
# Truncating logs
-for FILE in `find /var/log/ -type f`
+for FILE in $(find /var/log/ -type f)
do
cat < /dev/null > $FILE
done
diff --git a/hooks/minimal b/hooks/minimal
index 37e1f7503..3886d9a5f 100755
--- a/hooks/minimal
+++ b/hooks/minimal
@@ -30,7 +30,7 @@ rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
# Truncating logs
-for FILE in `find /var/log/ -type f`
+for FILE in $(find /var/log/ -type f)
do
cat < /dev/null > $FILE
done