Files
small-packages/honk/files/log-lines.sh
T
2026-10-11 22:01:38 +08:00

10 lines
172 B
Bash

#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-only
honk_add_log_lines() {
[ -s "$1" ] || return 0
while IFS= read -r line; do
json_add_string "" "$line"
done < "$1"
}