From 1f5b9b09f6d133ea7a2d124c1efd32c7461eda42 Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Sat, 30 Sep 2023 07:04:54 -0600 Subject: [PATCH] fix --- scripts/groff-compiler | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/groff-compiler b/scripts/groff-compiler index 89cc676..c1e895e 100755 --- a/scripts/groff-compiler +++ b/scripts/groff-compiler @@ -38,8 +38,9 @@ auto_pdfpic() { # If there is any .IMG command, replace with # auto_pdfpic output in a temp file. FILE="$1" -if [ "$(grep -q '^.IMG\s' "$FILE")" ] ; then +if [ "$(grep '^.IMG\s' "$FILE")" ] ; then TEMP="${FILE%%.*}.tmp" + echo $TEMP cp "$FILE" "$TEMP" while true ; do LINE="$(grep -m 1 '^.IMG\s' "$TEMP")"