Add $HOME/go/bin to $PATH for go (#106)

This commit is contained in:
James Mills
2023-08-28 04:50:13 +10:00
committed by GitHub
parent 4f6bdf85e1
commit f5b36f262a
+2
View File
@@ -55,6 +55,8 @@ for V in $(jq -r '.toolcache[] | select(.name == "go") | .versions[]' "/imagegen
fi fi
done done
sed "s|PATH=|PATH=$HOME/bin/go:|g" -i /etc/environment
printf "\n\t🐋 Cleaning image 🐋\t\n" printf "\n\t🐋 Cleaning image 🐋\t\n"
apt-get clean apt-get clean
rm -rf /var/cache/* /var/log/* /var/lib/apt/lists/* /tmp/* || echo 'Failed to delete directories' rm -rf /var/cache/* /var/log/* /var/lib/apt/lists/* /tmp/* || echo 'Failed to delete directories'