fix
This commit is contained in:
parent
ab56c08ce5
commit
1f5b9b09f6
1 changed files with 2 additions and 1 deletions
|
@ -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")"
|
||||
|
|
Loading…
Reference in a new issue