From e0097a27a91fcc6e6fa09f7c7b1a6a425ab44c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Sun, 5 Mar 2023 23:42:46 +0100 Subject: [PATCH] Drop quotes around variable strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas K. Hüttel --- 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() {