From f9e28d619175f2cf0cbf47ed827ece88c74fb4b8 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 25 Apr 2026 09:31:28 +0100 Subject: [PATCH] build_loglog.bash tees to /dev/null instead of ./0 --- capsule/build_loglog.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 capsule/build_loglog.bash diff --git a/capsule/build_loglog.bash b/capsule/build_loglog.bash old mode 100755 new mode 100644 index 0d3c824..f98e293 --- 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)"