]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/dev/server.sh
Apply the fix to both expanded and not expanded, using convention
[github/Chocobozzz/PeerTube.git] / scripts / dev / server.sh
index b09a966dd2fbf630af09e8f326cefafda8cbf60b..680ca3d7915bf608c8c1730701e826575b8612af 100755 (executable)
@@ -1,10 +1,12 @@
-#!/bin/sh
+#!/bin/bash
 
 set -eu
 
 if [ ! -f "./client/dist/en-US/index.html" ]; then
-  echo "client/dist/en-US/index.html does not exist, compile client files..."
-  npm run build:client -- --light
+  if [ -z ${1+x} ] || [ "$1" != "--skip-client" ]; then
+    echo "client/dist/en-US/index.html does not exist, compile client files..."
+    npm run build:client -- --light
+  fi
 fi
 
 # Copy locales