From 32edd6f268f821bb39b284d4f1f0bd190fba0d0b Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Fri, 10 Feb 2023 00:31:38 +0100 Subject: [PATCH] Conditional cargo --- .profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.profile b/.profile index 134d9c7..b926f97 100644 --- a/.profile +++ b/.profile @@ -8,4 +8,6 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi -. "$HOME/.cargo/env" +if [ -d "$HOME/.cargo" ] ; then + . "$HOME/.cargo/env" +fi