X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbuild%2Findex.sh;h=bf6ad48ebe3fb753986ee436ef64c94d7a8a7ae2;hb=fa58a19819cb821a5c5a26802efd492461be9c04;hp=fde6efe320afd8c79730e62a2ff2b4a47b33b737;hpb=c026a2e67357bd4bd4fcc4c10f8c5cd4749435c9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/build/index.sh b/scripts/build/index.sh index fde6efe32..bf6ad48eb 100755 --- a/scripts/build/index.sh +++ b/scripts/build/index.sh @@ -1,7 +1,13 @@ -#!/bin/sh +#!/bin/bash set -eu -npm run concurrently -- -k \ - "npm run build:client" \ +if [ ! -z ${1+x} ]; then + clientCommand="npm run build:client -- $1" +else + clientCommand="npm run build:client" +fi + +npm run concurrently -- --raw \ + "$clientCommand" \ "npm run build:server"