diff --git a/xcode/aux_scripts/install_env.sh b/xcode/aux_scripts/install_env.sh index c37fdaa..8f4c6ef 100644 --- a/xcode/aux_scripts/install_env.sh +++ b/xcode/aux_scripts/install_env.sh @@ -17,15 +17,13 @@ function source_home_file { file="$HOME/$1" - #echo $file - if [[ -f "${file}" ]]; then - paathes="$(cat "${file}" | grep "^export PATH=")" + export_commands="$(cat "${file}" | grep "^export PATH=")" - while read paath + while read export_command do - eval "$paath" - done <<< "$paathes" + eval "$export_command" + done <<< "$export_commands" else return 1 fi