From dde4412bf0e6c82aba818658a8e36d44f30c8433 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 24 Aug 2021 23:19:35 -0500 Subject: Ensure GUIX_PROFILE/etc/profile is readable before sourcing --- bash/guix.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/guix.bash b/bash/guix.bash index 127afef..c259e5a 100644 --- a/bash/guix.bash +++ b/bash/guix.bash @@ -1,3 +1,4 @@ export GUIX_PROFILE="$HOME/.config/guix/current" -. "$GUIX_PROFILE/etc/profile" +[ -r "$GUIX_PROFILE/etc/profile" ] && + . "$GUIX_PROFILE/etc/profile" -- cgit 1.4.1-21-gabe81