Friendly error if entr isn't installed for build.sh

This commit is contained in:
Bret Fisher
2018-05-02 23:08:52 -04:00
parent 29e37c8e2b
commit 927bf052b0

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