From bd5445a4116ecbd68d3096ef9775bfe83e81ff65 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 19 Jan 2023 15:44:53 -0800 Subject: [PATCH] Fix getting cargo if shell is sh --- rust/.config/profile/profile.d/rust.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/.config/profile/profile.d/rust.sh b/rust/.config/profile/profile.d/rust.sh index 8a2d263..fe789ca 100644 --- a/rust/.config/profile/profile.d/rust.sh +++ b/rust/.config/profile/profile.d/rust.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -if [[ -f "${HOME}/.cargo/env" ]]; then +if [ -f "${HOME}/.cargo/env" ]; then . "${HOME}/.cargo/env" || exit 1 fi