summaryrefslogtreecommitdiffstats
path: root/run.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh.in')
-rwxr-xr-xrun.sh.in9
1 files changed, 8 insertions, 1 deletions
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