Skip to content

Commit 47e7a2e

Browse files
committed
util: make sure FLOW_HOME is set once
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent 21cae22 commit 47e7a2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flow/util/generate-vars.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ ORFS_ROOT=$(realpath "${FLOW_HOME}/../")
77
# exclude system and CI variables
88
EXCLUDED_VARS="MAKE|MAKEFLAGS|PERL5LIB|QT_QPA_PLATFORM"
99
EXCLUDED_VARS+="|RESULTS_ODB|PUBLIC|ISSUE_SCRIPTS"
10-
EXCLUDED_VARS+="|HOME|PWD|MAIL|SHELL|NPROC|NUM_CORES"
10+
EXCLUDED_VARS+="|HOME|PWD|MAIL|SHELL|NPROC|NUM_CORES|FLOW_HOME"
1111
EXCLUDED_VARS+="|UNSET_VARIABLES_NAMES|do-step|get_variables|do-copy"
1212

1313
EXCLUDED_PATTERNS="_EXE$|PATH$|_CMD$|\."
1414

15+
echo 'export FLOW_HOME=${FLOW_HOME:-$(pwd)}' > $1.sh
16+
1517
while read -r VAR; do
1618
if [[ ${VAR} != *"="* ]] ; then
1719
# skip variables that do not have an equal sign

0 commit comments

Comments
 (0)