commit 297bdb047d2247a7da088f58bcbdbefc10ac9a22
parent 055ecf1cd2a0e46c3d39955b5153d91143f32643
Author: Brian Mayer <bleemayer@gmail.com>
Date: Sun, 6 Aug 2023 13:23:13 -0300
Merge pull request #41 from rnwgnr/lastline
fix missing last line when page doesn't end with a new line
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/astro b/astro
@@ -161,7 +161,7 @@ parseurl() {
}
typesetgmi() {
- while IFS='' read -r line
+ while IFS='' read -r line || [ -n "$line" ];
do
line="$(echo "$line" | tr -d '\r')"
# shellcheck disable=SC2016