Limit the number of vehicles

This commit is contained in:
JaeyoungLim 2020-02-19 09:46:38 +01:00 committed by Beat Küng
parent c89766c8ab
commit 01b280f7ae
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ then
exit 1 exit 1
fi fi
if [ $num_vehicles -gt 255 ]
then
echo "Tried spawning $num_vehicles vehicles. The maximum number of supported vehicles is 255"
exit 1
fi
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
src_path="$SCRIPT_DIR/.." src_path="$SCRIPT_DIR/.."