diff options
author | Léo Andrès <leo@ndrs.fr> | 2018-03-27 09:35:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-27 10:35:12 +0200 |
commit | 0e4ffb4b678962d5ff7a4a7d8952033bc84725da (patch) | |
tree | b116dfe4244f645aa1c4740039544010ef7c3194 /scripts/play.sh | |
parent | d5b7d9110dd637a7f67ce9e430145314812a8df1 (diff) | |
download | PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.tar.gz PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.tar.zst PeerTube-0e4ffb4b678962d5ff7a4a7d8952033bc84725da.zip |
Clean shell scripts (#398)
Diffstat (limited to 'scripts/play.sh')
-rwxr-xr-x | scripts/play.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/play.sh b/scripts/play.sh index ac2a10b12..69725da93 100755 --- a/scripts/play.sh +++ b/scripts/play.sh | |||
@@ -1,4 +1,6 @@ | |||
1 | #!/usr/bin/env sh | 1 | #!/bin/sh |
2 | |||
3 | set -eu | ||
2 | 4 | ||
3 | if [ ! -f "dist/server.js" ]; then | 5 | if [ ! -f "dist/server.js" ]; then |
4 | echo "Missing server file (server.js)." | 6 | echo "Missing server file (server.js)." |
@@ -7,7 +9,7 @@ fi | |||
7 | 9 | ||
8 | max=${1:-3} | 10 | max=${1:-3} |
9 | 11 | ||
10 | for i in $(seq 1 $max); do | 12 | for i in $(seq 1 "$max"); do |
11 | NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js & | 13 | NODE_ENV=test NODE_APP_INSTANCE=$i node dist/server.js & |
12 | sleep 1 | 14 | sleep 1 |
13 | done | 15 | done |