From d7acbb0080aec1c32f233780f4fa48976b548b8b Mon Sep 17 00:00:00 2001 From: Aleksandr Shushkov Date: Mon, 6 Dec 2021 20:55:16 +0300 Subject: [PATCH] Fix variable names --- xcode/aux_scripts/install_env.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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