From 927bf052b0de5084662b4b706513181778bb45b2 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Wed, 2 May 2018 23:08:52 -0400 Subject: [PATCH] Friendly error if entr isn't installed for build.sh --- slides/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/slides/build.sh b/slides/build.sh index 3515ebbb..4b95c4c9 100755 --- a/slides/build.sh +++ b/slides/build.sh @@ -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