-
-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
Hi all,
I try to run the following bash script but it doesn't create any pdf. However if the invoked command is marp --version it is executed. The same applies if the command to be executed is cp $FILE $FILE.pdf excluding any file permission issues.
#!/bin/bash
# Use inotifywait in a loop
inotifywait -m -e modify --format '%w%f' *.md | while read FILE
do
echo "Changed file: $FILE and ${FILE%.md}.pdf"
# command
marp $FILE -o ${FILE%.md}.pdf
done
Am I missing something?
Thank you
Metadata
Metadata
Assignees
Labels
No labels