summaryrefslogtreecommitdiff
path: root/markdown_preview.sh
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2021-01-11 16:52:31 -0800
committerlshprung <lshprung@yahoo.com>2021-01-11 16:52:31 -0800
commit7ecbe320c838aef73ec80f0174a7b53d8985f3eb (patch)
treedac84f515cceb5b68a900032d28a544c192cf75c /markdown_preview.sh
parent697afa20cdfd70a3e549489e3aa971f59d2325bb (diff)
Decreased sleep between updatesHEADmaster
Diffstat (limited to 'markdown_preview.sh')
-rwxr-xr-xmarkdown_preview.sh3
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