From 874a5d299fee6a36bd38a1bb1eb56cfab4d5235f Mon Sep 17 00:00:00 2001 From: Brian Ketelsen Date: Thu, 29 Feb 2024 15:10:27 -0500 Subject: [PATCH] fix: replace profile brew.sh on just brew command (#984) --- just/custom.just | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/just/custom.just b/just/custom.just index 2ac0389c..f3f63f3d 100644 --- a/just/custom.just +++ b/just/custom.just @@ -26,6 +26,12 @@ brew: echo "Capitalization matters when you type \"YES I UNDERSTAND\"" fi fi + # if /etc/profile.d/brew.sh already exists, replace it with /usr/etc/profile.d/brew.sh + if [ -f /etc/profile.d/brew.sh ]; then + if [ -f /usr/etc/profile.d/brew.sh ]; then + sudo cp /usr/etc/profile.d/brew.sh /etc/profile.d/brew.sh + fi + fi # Install "fleek" set of packages for brew | none, low, default, high brew-fleek level="high":