From 53dad377a388b55b4ec74613ae01143e7ba62562 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 15 Sep 2021 11:34:16 +0300 Subject: fix: make sure the then branch can never be empty Sponsored-by: pep.foundation --- share/bash/template/template.sh.tera | 1 + 1 file changed, 1 insertion(+) (limited to 'share') diff --git a/share/bash/template/template.sh.tera b/share/bash/template/template.sh.tera index 67134f3..da748be 100644 --- a/share/bash/template/template.sh.tera +++ b/share/bash/template/template.sh.tera @@ -191,6 +191,7 @@ done if [ "$#" = 0 ] then {% for scenario in scenarios %} scenario_{{ loop.index }}{% endfor %} + : # Avoid empty then-branch if no scenarios else -- cgit v1.2.1