More robust env.sh | Fix conda activate if in subshell

This commit is contained in:
abejgonzalez
2023-11-06 17:22:05 -08:00
parent fff36c4761
commit eca7b960f6
4 changed files with 100 additions and 8 deletions

View File

@@ -157,8 +157,6 @@ if [ ! -f ./software/firemarshal/marshal-config.yaml ]; then
echo "firesim-dir: '../../sims/firesim/'" > ./software/firemarshal/marshal-config.yaml
fi
cat << EOT >> env.sh
# line auto-generated by init-submodules-no-riscv-tools.sh
replace_content env.sh init-submodules "# line auto-generated by init-submodules-no-riscv-tools.sh
__DIR="$RDIR"
PATH=\$__DIR/software/firemarshal:\$PATH
EOT
PATH=\$__DIR/software/firemarshal:\$PATH"