Skip to content

Commit 2bb6485

Browse files
committed
import br_add_to_file from systemcheck
1 parent e7ddc80 commit 2bb6485

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

usr/libexec/helper-scripts/strings.bsh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <[email protected]>
44
## See the file COPYING for copying conditions.
55

6+
br_add_to_file() {
7+
local file_name="$1"
8+
9+
test -f "${file_name}"
10+
safe-rm -f -- "${file_name}_br"
11+
touch -- "${file_name}_br"
12+
13+
local line
14+
while IFS= read -r line ; do
15+
printf '%s\n' "$line<br />" | tee -a -- "${file_name}_br" >/dev/null
16+
done < "${file_name}"
17+
}
18+
619
read_integer_file() {
720
local target_file lower_bound upper_bound file_contents
821

0 commit comments

Comments
 (0)