diff --git a/xcode/aux_scripts/install_env.sh b/xcode/aux_scripts/install_env.sh index 2b6feec..379c640 100644 --- a/xcode/aux_scripts/install_env.sh +++ b/xcode/aux_scripts/install_env.sh @@ -18,12 +18,14 @@ function source_home_file { file="$HOME/$1" if [[ -f "${file}" ]]; then - export_commands="$(cat "${file}" | grep "^export PATH=")" + if ! source "${file}"; then + export_commands="$(cat "${file}" | grep "^export PATH=")" - while read export_command - do - eval "$export_command" - done <<< "$export_commands" + while read export_command + do + eval "$export_command" + done <<< "$export_commands" + fi fi return 1