Mitigate newly added shellcheck issues

Issues not present when the original patch was created have now also
been fixed.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
This commit is contained in:
Joakim Roubert 2020-05-14 19:27:36 +02:00 committed by Joakim Roubert
parent 826274c867
commit 0c899b2bc2

View File

@ -41,7 +41,7 @@ function convert-manifest-params {
for flag in "${FLAGS[@]}"; do for flag in "${FLAGS[@]}"; do
params+="\n\"$flag\"," params+="\n\"$flag\","
done done
if [ -n "${params[*]}" ]; then if [ -n "$params" ]; then
echo "${params::-1}" # drop trailing comma echo "${params::-1}" # drop trailing comma
fi fi
} }