Skip to content

Commit

Permalink
Use export in %environment to ensure variables are inherited by subpr…
Browse files Browse the repository at this point in the history
…ocesses

Signed-off-by: Pontus Freyhult <[email protected]>
  • Loading branch information
pontus committed Mar 13, 2024
1 parent 1b8e551 commit e01ea98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion definition_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ the following syntax:
.. code:: {command}

%environment
FOO=${FOO:-'default'}
export FOO=${FOO:-'default'}

The value of ``FOO`` in the container will take the value of ``FOO`` on
the host, or ``default`` if ``FOO`` is not set on the host or if
Expand Down

0 comments on commit e01ea98

Please sign in to comment.