]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/index.sh
Add logic to handle playlist in embed
[github/Chocobozzz/PeerTube.git] / scripts / build / index.sh
index 31f2733c32a8432de512f9a369e925dfa197e974..bf6ad48ebe3fb753986ee436ef64c94d7a8a7ae2 100755 (executable)
@@ -1,13 +1,13 @@
-#!/bin/sh
+#!/bin/bash
 
 set -eu
 
-if [[ -n ${1+x} ]]; then
+if [ ! -z ${1+x} ]; then
   clientCommand="npm run build:client -- $1"
 else
   clientCommand="npm run build:client"
 fi
 
-npm run concurrently -- --raw \w
+npm run concurrently -- --raw \
   "$clientCommand" \
   "npm run build:server"