From 054331cb5a6ccec24da95c4782f0be792c029433 Mon Sep 17 00:00:00 2001 From: VetheonGames Date: Mon, 8 Jan 2024 15:58:48 -0700 Subject: [PATCH] Minor patch to set GOCACHE env var if it's not set automatically --- allpac/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/allpac/install.sh b/allpac/install.sh index c15a694..c1221aa 100644 --- a/allpac/install.sh +++ b/allpac/install.sh @@ -133,6 +133,10 @@ sleep 2 if ! grep -qF 'export PATH=$PATH:$HOME/.allpac/bin' "$shell_rc"; then echo 'export PATH=$PATH:$HOME/.allpac/bin' >> "$shell_rc" fi +echo "Ensuring GOCACHE is set..." +if ! grep -qF 'export GOCACHE' "$shell_rc"; then + echo 'export GOCACHE=$HOME/.cache/go-build' >> "$shell_rc" +fi updater_url="https://git.pixelridgesoftworks.com/PixelRidge-Softworks/Installers/raw/branch/main/allpac/update.sh" echo "Downloading updater script..."