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:
parent
249185d427
commit
fe7ecde00f
|
@ -119,8 +119,8 @@ post_build() {
|
||||||
|
|
||||||
catalyst_var() {
|
catalyst_var() {
|
||||||
# Extract a setting from the catalyst.conf.
|
# Extract a setting from the catalyst.conf.
|
||||||
local var=$1
|
local var=$(grep --color=never -Po "^${1}\s*=\s*\K.*" "${CATALYST_CONFIG}" || true)
|
||||||
(. "${CATALYST_CONFIG}"; echo "${!var}")
|
[[ -z ${var} ]] || echo "${var}"
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger_post_build() {
|
trigger_post_build() {
|
||||||
|
|
Loading…
Reference in a new issue