This commit is contained in:
tavo-wasd 2023-09-30 07:04:54 -06:00
parent ab56c08ce5
commit 1f5b9b09f6

View file

@ -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")"