check that entr is installed for live script

This commit is contained in:
sentriz
2019-07-08 13:43:54 +01:00
parent ba2f835c22
commit fdbd284da0

View File

@@ -1,3 +1,9 @@
#!/bin/sh
if ! command -v 'entr' > /dev/null; then
echo 'please install `entr`' >&2
echo 'http://eradman.com/entrproject/' >&2
exit 1
fi
find server/assets/ | entr -r ./_do_run_server $@