Merge pull request #242 from BretFisher/check-for-entr-in-build

Friendly error if entr isn't installed for build.sh
This commit is contained in:
Jérôme Petazzoni
2018-05-05 05:30:05 -05:00
committed by GitHub

View File

@@ -15,6 +15,12 @@ once)
;;
forever)
# check if entr is installed
if ! command -v entr >/dev/null; then
echo >&2 "First install 'entr' with apt, brew, etc."
exit
fi
# There is a weird bug in entr, at least on MacOS,
# where it doesn't restore the terminal to a clean
# state when exitting. So let's try to work around