Minor patch to set GOCACHE env var if it's not set automatically

This commit is contained in:
VetheonGames 2024-01-08 15:58:48 -07:00
parent 2630490dee
commit 054331cb5a

View File

@ -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..."