From 7abf04ed50547d282b4543019f32ea64e2b85e21 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 4 Jun 2010 14:38:21 +0200 Subject: [run.sh] improve error handling Signed-off-by: Michael Olbrich --- run.sh.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'run.sh.in') diff --git a/run.sh.in b/run.sh.in index 95d846a..0ef7f14 100755 --- a/run.sh.in +++ b/run.sh.in @@ -8,6 +8,13 @@ # and related or neighboring rights to JSON-DBus-Bridge Demo Code. # +if [ ! -f "@abs_builddir@/web-gui/index.html" ]; then + echo + echo 'You must run "make" before running this script' + echo + exit 1 +fi + finish() { kill $hello_pid kill $calculator_pid @@ -30,7 +37,7 @@ echo -n "waiting for lighttpd " for i in `seq 10`; do sleep 1 echo -n "." - wget -e no_proxy=localhost -O - -q http://localhost:8080/hello-world/build/ > /dev/null && break + wget -e no_proxy=localhost -O - -q http://localhost:8080/ > /dev/null && break done if [ $? -ne 0 ]; then -- cgit v1.2.3