v1.1.4 : Added code quality check & fixed result.json fmt

This commit is contained in:
Brendan LE GLAUNEC
2016-12-13 12:04:32 +01:00
committed by Brendan LE GLAUNEC
parent 1fc21f0906
commit 6e06346685
12 changed files with 21 additions and 210 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ function start {
for (( i=1; i<=$1; i++ )); do
name="$cams_name_pattern$i"
# random conf
conf_idx=$(($RANDOM % ${#ports[@]}))
conf_idx=$((RANDOM % ${#ports[@]}))
# get conf variables
port=${ports[$conf_idx]}
@@ -65,7 +65,7 @@ function start {
function stop {
# if no cameras containers are started just exit
camera_count="`docker ps -a -q --filter="name=$cams_name_pattern" | wc -l`"
camera_count="$(docker ps -a -q --filter="name=$cams_name_pattern" | wc -l)"
if [ "$camera_count" == "0" ]; then
echo "error: no cameras started"; exit 1
fi