From f0d3f635b1b94b0aaa25ea381a25d9d43004889c Mon Sep 17 00:00:00 2001 From: qoijjj <129108030+qoijjj@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:17:59 -0700 Subject: [PATCH] fix: brew import for wayblue images --- files/scripts/addbrewjustimport.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/scripts/addbrewjustimport.sh b/files/scripts/addbrewjustimport.sh index cad6d50..bacc9b4 100644 --- a/files/scripts/addbrewjustimport.sh +++ b/files/scripts/addbrewjustimport.sh @@ -2,8 +2,9 @@ # Tell build process to exit if there are any errors. set -oue pipefail -echo ' -import "/usr/share/ublue-os/just/50-brew.just" +brewimport='import "/usr/share/ublue-os/just/50-brew.just"' -' >> /usr/share/ublue-os/justfile +if ! grep -qF "$brewimport" /usr/share/ublue-os/justfile; then + echo "$brewimport" >> /usr/share/ublue-os/justfile +fi