This is when custom_shard_config.txt is empty.
Change-Id: I61f07071dbe2d08a004ee53183ae976c4b343883
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
count=$[count + 1]
done
- # using ::-1 below to remove the extra comma we get from the above loop
- echo -e ${modules_string::-1}"\n]"
+ if [ ${count} == 1 ]; then
+ # if no modules found in custom_shard_config.txt just close the bracket
+ echo -e ${modules_string}"\n]"
+ else
+ # using ::-1 below to remove the extra comma we get from the above loop
+ echo -e ${modules_string::-1}"\n]"
+ fi
}
function get_cli_params