Major Update 1
Changed the pacman install command to 'pacman -Syu' to make the Arch Linux Forum shutup Added some echo statements to throw shade at the arch forums and it's terrible users refactor the path export to add in some logic to prevent the path from being ammended every time the user shell starts
This commit is contained in:
parent
15ea1eaaab
commit
a3fa99891b
|
@ -24,10 +24,19 @@ echo "Checking if Go is installed..."
|
||||||
if [[ "$go_version" != *"$required_version"* ]]; then
|
if [[ "$go_version" != *"$required_version"* ]]; then
|
||||||
echo "Required Go version is not installed."
|
echo "Required Go version is not installed."
|
||||||
|
|
||||||
read -p "Do you want to install Go? [Y/n] " -n 1 -r
|
read -p "Do you want to install Go? (this will also preform a general system update with pacman) [Y/n] " -n 1 -r
|
||||||
echo
|
echo
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
sudo pacman -Sy go
|
echo "Running 'sudo pacman -Syu go' instead of 'pacman -Sy'..."
|
||||||
|
echo "Because the Arch Developers won't make Pacman alert you of this, I guess AllPac has to..."
|
||||||
|
echo "Running 'pacman -Sy'/'pacman -S' syncs the package database, but doesn't update the actual packages"
|
||||||
|
echo "This can cause a lot of problems if something get's updated but something that depends on it doesn't."
|
||||||
|
echo "It's called a 'Partial Upgrade' and it can break your system"
|
||||||
|
echo "If you wanna install a package and you don't use AllPac, always just run 'pacman -Syu {package}'"
|
||||||
|
echo "That's all it took to explain the issue properly Scimmia..."
|
||||||
|
echo "Arch Linux Forums users/devs are toxic."
|
||||||
|
sleep 3
|
||||||
|
sudo pacman -Syu go
|
||||||
else
|
else
|
||||||
echo "Go not installed. Exiting."
|
echo "Go not installed. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -45,7 +54,7 @@ if ! command -v git &>/dev/null; then
|
||||||
read -p "Do you want to install Git? [Y/n] " -n 1 -r
|
read -p "Do you want to install Git? [Y/n] " -n 1 -r
|
||||||
echo
|
echo
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
sudo pacman -S git
|
sudo pacman -Syu git
|
||||||
else
|
else
|
||||||
echo "Git not installed. Exiting."
|
echo "Git not installed. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -91,7 +100,9 @@ esac
|
||||||
|
|
||||||
echo "Adding AllPac to the system path..."
|
echo "Adding AllPac to the system path..."
|
||||||
sleep 1
|
sleep 1
|
||||||
echo 'export PATH=$PATH:$HOME/.allpac/bin' >> "$shell_rc"
|
if ! grep -qF 'export PATH=$PATH:$HOME/.allpac/bin' "$shell_rc"; then
|
||||||
|
echo 'export PATH=$PATH:$HOME/.allpac/bin' >> "$shell_rc"
|
||||||
|
fi
|
||||||
source "$shell_rc"
|
source "$shell_rc"
|
||||||
|
|
||||||
updater_url="https://git.pixelridgesoftworks.com/PixelRidge-Softworks/Installers/raw/branch/main/allpac/update.sh"
|
updater_url="https://git.pixelridgesoftworks.com/PixelRidge-Softworks/Installers/raw/branch/main/allpac/update.sh"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user