diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-04 14:38:21 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-04 14:38:21 +0200 |
commit | 7abf04ed50547d282b4543019f32ea64e2b85e21 (patch) | |
tree | fb0ec15cc8914ef7b3be62c9e02e0abffacefe1a | |
parent | 49a1584de9a31660c5da4f98fd9daffd2b2f88a1 (diff) | |
download | json-dbus-bridge-examples-7abf04ed50547d282b4543019f32ea64e2b85e21.tar.gz json-dbus-bridge-examples-7abf04ed50547d282b4543019f32ea64e2b85e21.tar.xz |
[run.sh] improve error handling
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-x | run.sh.in | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |