Добрый день уважаемые специалисты. Помогите решить вопрос.
Запускаю sh файл (с правами) через терминал, получаю No such file or directory/.bashrc
Гугл не помог. Бьюсь в эту стену 3й вечер).
Содержимое файла sh:
source ~/.bashrc
cd ~/data
python file.py
Содержимое файла .bashrc:
# .bashrc
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functi
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/ec2-user/.pyenv/versions/anaconda3-2020.11/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/ec2-user/.pyenv/versions/anaconda3-2020.11/etc/profile.d/conda.sh" ]; then
. "/home/ec2-user/.pyenv/versions/anaconda3-2020.11/etc/profile.d/conda.sh"
else
export PATH="/home/ec2-user/.pyenv/versions/anaconda3-2020.11/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<