From 33aab4ee9cedb6cef1d9507e2e349b3114ae7ea2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20OLIVIER?= <cedric3.olivier@orange.com>
Date: Tue, 9 Nov 2021 12:30:44 +0000
Subject: [PATCH] ci: fix bashshell lint

---
 templates/gitlab-ci-sonar.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/gitlab-ci-sonar.yml b/templates/gitlab-ci-sonar.yml
index cc74020..0c689a0 100644
--- a/templates/gitlab-ci-sonar.yml
+++ b/templates/gitlab-ci-sonar.yml
@@ -183,7 +183,7 @@ stages:
         _cond_val=$(echo "$_cond_val" | tr '[:punct:]' '_')
         # retrieve comparison value
         _cmp_val_prefix="scoped__${_target_var}__${_condition}__${_cond_var}__${_test_op}__"
-        _cmp_val=${_scoped_var#$_cmp_val_prefix}
+        _cmp_val=${_scoped_var#"$_cmp_val_prefix"}
         # manage 'ignore case'
         if [[ "$_test_op" == *_ic ]]
         then
-- 
GitLab