From 6b05582456ebc034b3618123d6fa095c22c558f1 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 30 Jan 2023 17:23:18 +0100 Subject: [PATCH] Fix missing check for cargo env before loading --- private_dot_bash_profile | 2 +- private_dot_bashrc | 2 +- private_dot_profile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"