]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/dev/server.sh
Avoid 404 title on the first page load
[github/Chocobozzz/PeerTube.git] / scripts / dev / server.sh
index bff26cb4bbac80a5358b0a73c24336bea129a2d7..bfe322ce1e94ffe7fdc09d79d3af344f8d3fcce8 100755 (executable)
@@ -1,7 +1,9 @@
-#!/usr/bin/env sh
+#!/bin/sh
 
-if [ ! -d "./client/dist" ]; then
-  echo "client/dist does not exist, compile client files..."
+set -eu
+
+if [ ! -f "./client/dist/index.html" ]; then
+  echo "client/dist/index.html does not exist, compile client files..."
   npm run build:client
 fi