Fix variable names

This commit is contained in:
Aleksandr Shushkov 2021-12-06 20:55:16 +03:00
parent 5145245266
commit d7acbb0080
1 changed files with 4 additions and 6 deletions

View File

@ -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