From b8606ecc5e31ac32324f0d72e0b42561bf5a09f2 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 31 Dec 2023 18:08:18 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20a=20stupid=20issue=20in=20which=20a=20cus?= =?UTF-8?q?tom=20arg=20ending=20with=20=5Fpath=20would=20get=20its=20value?= =?UTF-8?q?=20replaced=20instead=20of=20the=20actual=20path=20=C3=A9=5F?= =?UTF-8?q?=C3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests.sh b/lib/tests.sh index 3377061..5217d0b 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -81,6 +81,7 @@ _INSTALL_APP () { # Make sure we have a trailing & because that assumption is used in some sed regex later [[ ${install_args: -1} == '&' ]] || install_args+="&" + [[ ${install_args:0:1} == '&' ]] || install_args="&$install_args" # We have default values for domain, admin and is_public, but these # may still be overwritten by the args ($@) @@ -95,7 +96,7 @@ _INSTALL_APP () { && [[ "$(jq -r '.arguments.install[] | select(.name=="is_public") | .type' $package_path/manifest.json)" != "boolean" ]] \ && continue - install_args=$(echo $install_args | sed "s@$key=[^&]*\&@$key=$value\&@") + install_args=$(echo $install_args | sed "s@\&$key=[^&]*\&@\&$key=$value\&@") done # Note : we do this at this stage and not during the parsing of check_process