Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit fd6e0c58 authored by Charles Steinkuehler's avatar Charles Steinkuehler Committed by Robert Nelson
Browse files

RootStock.ng: Fix sourcing via m4 (#95)


Use process substitution so variables modified by sourcing the conf
file are seen in the main shell

Signed-off-by: default avatarCharles Steinkuehler <charles@steinkuehler.net>
parent 67776cb1
No related merge requests found
...@@ -106,7 +106,7 @@ check_project_config () { ...@@ -106,7 +106,7 @@ check_project_config () {
#${project_config}.conf #${project_config}.conf
project_config=$(echo ${project_config} | awk -F ".conf" '{print $1}') project_config=$(echo ${project_config} | awk -F ".conf" '{print $1}')
if [ -f ${DIR}/configs/${project_config}.conf ] ; then if [ -f ${DIR}/configs/${project_config}.conf ] ; then
m4 -P ${DIR}/configs/${project_config}.conf | . /dev/fd/0 . <(m4 -P ${DIR}/configs/${project_config}.conf)
export_filename="${deb_distribution}-${release}-${image_type}-${deb_arch}-${time}" export_filename="${deb_distribution}-${release}-${image_type}-${deb_arch}-${time}"
# for automation # for automation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment