diff --git a/private_dot_bash_profile b/private_dot_bash_profile index e9a32c5..84e0f49 100644 --- a/private_dot_bash_profile +++ b/private_dot_bash_profile @@ -2,4 +2,4 @@ [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* -. "$HOME/.cargo/env" +[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" diff --git a/private_dot_bashrc b/private_dot_bashrc index 075f42b..980570d 100644 --- a/private_dot_bashrc +++ b/private_dot_bashrc @@ -5,4 +5,4 @@ export LC_ALL=fr_FR.UTF-8 export PATH="$PATH:$HOME/.rvm/bin:$HOME/Projects/golang/bin" [ -f ~/.fzf.bash ] && source ~/.fzf.bash -. "$HOME/.cargo/env" +[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" diff --git a/private_dot_profile b/private_dot_profile index 1389499..363dca4 100644 --- a/private_dot_profile +++ b/private_dot_profile @@ -3,4 +3,4 @@ export PATH="$PATH:$HOME/.rvm/bin" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* -. "$HOME/.cargo/env" +[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"