commit:     e0097a27a91fcc6e6fa09f7c7b1a6a425ab44c06
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  5 22:42:46 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Mar  5 22:42:46 2023 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=e0097a27

Drop quotes around variable strings

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 tools/catalyst-auto | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index e84d3594..2dab0185 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -120,7 +120,8 @@ post_build() {
 catalyst_var() {
        # Extract a setting from the catalyst.conf.
        local var=$(grep --color=never -Po "^${1}\s*=\s*\K.*" 
"${CATALYST_CONFIG}" || true)
-       [[ -z ${var} ]] || echo "${var}"
+       local vas=$(echo $var|sed -e 's:^"::g' -e 's:"$::g')
+       [[ -z ${vas} ]] || echo "${vas}"
 }
 
 trigger_post_build() {

Reply via email to