diff options
author | lshprung <lshprung@yahoo.com> | 2021-01-11 16:52:31 -0800 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2021-01-11 16:52:31 -0800 |
commit | 7ecbe320c838aef73ec80f0174a7b53d8985f3eb (patch) | |
tree | dac84f515cceb5b68a900032d28a544c192cf75c /markdown_preview.sh | |
parent | 697afa20cdfd70a3e549489e3aa971f59d2325bb (diff) |
Diffstat (limited to 'markdown_preview.sh')
-rwxr-xr-x | markdown_preview.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/markdown_preview.sh b/markdown_preview.sh index aa066d1..3327dda 100755 --- a/markdown_preview.sh +++ b/markdown_preview.sh @@ -2,6 +2,7 @@ #Variables RUN=0 +SLEEP=1 file -E $1 > /dev/null 2>&1 @@ -24,7 +25,7 @@ while [ $RUN -eq 0 ]; do LAST_MOD=`stat $1 --printf=%Y` pandoc -f markdown -t pdf -o /tmp/preview.pdf $1 fi - sleep 5 + sleep $SLEEP RUN=$(ps --pid $PID; echo $?) RUN=$(echo $RUN | rev | cut -c 1) done |