diff --git a/flow/util/generate-vars.sh b/flow/util/generate-vars.sh index 143df79e9b..dc71505919 100755 --- a/flow/util/generate-vars.sh +++ b/flow/util/generate-vars.sh @@ -53,11 +53,11 @@ while read -r VAR; do echo "set env ${name} ${value}" >> $1.gdb continue fi - if [[ ${value} == /* ]]; then - # convert absolute paths if possible to use FLOW_HOME variable - value=$(sed -e "s,${FLOW_ROOT},\${FLOW_HOME},g" <<< "${value}") - value=$(sed -e "s,${ORFS_ROOT},\${FLOW_HOME}/\.\.,g" <<< "${value}") - fi + + # convert absolute paths if possible to use FLOW_HOME variable + value=$(sed -e "s,${FLOW_ROOT},\${FLOW_HOME},g" <<< "${value}") + value=$(sed -e "s,${ORFS_ROOT},\${FLOW_HOME}/\.\.,g" <<< "${value}") + echo "export ${name}=\"${value}\"" >> $1.sh if [[ "${value}" == *'$'* ]]; then echo "set env ${name} $(sed -e 's,${FLOW_HOME},getenv("FLOW_HOME"),' <<< ${value})" >> $1.gdb