Do not source catalyst.conf as it's not bash syntax

* non-bash formatted lines are executed; results in several "command not found" errors
* instead, parse the file for the specific var

[this still leaves the doublequotes " around the value- dilfridge]

Signed-off-by: Nic Boet <nic@boet.cc>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Nic Boet 2023-03-05 23:38:17 +01:00 committed by Andreas K. Hüttel
parent 249185d427
commit fe7ecde00f
No known key found for this signature in database
GPG key ID: DC2B16215ED5412A

View file

@ -119,8 +119,8 @@ post_build() {
catalyst_var() {
# Extract a setting from the catalyst.conf.
local var=$1
(. "${CATALYST_CONFIG}"; echo "${!var}")
local var=$(grep --color=never -Po "^${1}\s*=\s*\K.*" "${CATALYST_CONFIG}" || true)
[[ -z ${var} ]] || echo "${var}"
}
trigger_post_build() {