summaryrefslogtreecommitdiff
path: root/capsule/build_loglog.bash
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-25 09:31:28 +0100
committerJoe Carstairs <me@joeac.net>2026-04-25 09:31:28 +0100
commitf9e28d619175f2cf0cbf47ed827ece88c74fb4b8 (patch)
treec6eec9396cb2f70ff61a2ec909aae5f775c1261e /capsule/build_loglog.bash
parentae447e47ac8c9eb95948fdbf3edcacd85c8687f5 (diff)
build_loglog.bash tees to /dev/null instead of ./0
Diffstat (limited to 'capsule/build_loglog.bash')
-rw-r--r--[-rwxr-xr-x]capsule/build_loglog.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/capsule/build_loglog.bash b/capsule/build_loglog.bash
index 0d3c824..f98e293 100755..100644
--- a/capsule/build_loglog.bash
+++ b/capsule/build_loglog.bash
@@ -69,10 +69,10 @@ trim_entries()
ENTRY_DIR="$1"
for entry in $ENTRY_DIR/*; do
while [[ -z "$(head -n 1 "$entry")" && "$(wc -l "$entry" | cut -c1)" -ne 0 ]]; do
- tail -n +2 "$entry" | tee "$entry" 1>0
+ tail -n +2 "$entry" | tee "$entry" 1>/dev/null
done
while [[ -z "$(tail -n 1 "$entry")" && "$(wc -l "$entry" | cut -c1)" -ne 0 ]]; do
- head -n -1 "$entry" | tee "$entry" 1>0
+ head -n -1 "$entry" | tee "$entry" 1>/dev/null
done
if [[ -z "$(cat "$entry")" ]]; then
echo "Removing entry $entry: $(cat $entry)"