From 32d88634ee9c0cf56e8f950ee520bdca06d00e7c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 19 Feb 2024 19:52:54 +0000 Subject: [PATCH] linux: fix linuxbrew setup --- private_dot_profile.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private_dot_profile.tmpl b/private_dot_profile.tmpl index c5b2caa..c5f35b8 100644 --- a/private_dot_profile.tmpl +++ b/private_dot_profile.tmpl @@ -7,6 +7,6 @@ export PATH="$PATH:$HOME/.rvm/bin" {{- if eq .chezmoi.os "linux" }} # Set PATH, MANPATH, etc., for Homebrew. -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +[[ -s "/home/linuxbrew/.linuxbrew/bin/brew" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" {{- end }}