Make sure watching doesn't stop if build fails
This commit is contained in:
parent
1f2ecfc8c1
commit
e030a43db4
1 changed files with 4 additions and 4 deletions
|
@ -160,14 +160,14 @@
|
||||||
time=$(stat -c %Y book.pdf)
|
time=$(stat -c %Y book.pdf)
|
||||||
else
|
else
|
||||||
time=$(date "+%s")
|
time=$(date "+%s")
|
||||||
build "''${builddir}"
|
build "''${builddir}" || ${pkgs.libnotify}/bin/notify-send "Build failed"
|
||||||
fi
|
fi
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
while [ "$time" -lt "$(stat -c %Y book.org)" ]
|
while [ "$time" -lt "$(stat -c %Y book.org)" ]
|
||||||
do
|
do
|
||||||
time=$(date "+%s")
|
time=$(date "+%s")
|
||||||
build "''${builddir}"
|
build "''${builddir}" || ${pkgs.libnotify}/bin/notify-send "Build failed"
|
||||||
done
|
done
|
||||||
time=$(date "+%s")
|
time=$(date "+%s")
|
||||||
echo "Waiting for change..."
|
echo "Waiting for change..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue