From 0c899b2bc2f1fa78ced28605198a40bbae1f7962 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Thu, 14 May 2020 19:27:36 +0200 Subject: [PATCH] Mitigate newly added shellcheck issues Issues not present when the original patch was created have now also been fixed. Signed-off-by: Joakim Roubert --- cluster/gce/gci/configure-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index 09f8754dfda..038fa582c92 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -41,7 +41,7 @@ function convert-manifest-params { for flag in "${FLAGS[@]}"; do params+="\n\"$flag\"," done - if [ -n "${params[*]}" ]; then + if [ -n "$params" ]; then echo "${params::-1}" # drop trailing comma fi }