From e5a6b9aa8126f6f5ab6fcfe83d0407df72253e0e Mon Sep 17 00:00:00 2001 From: alvinlollo <143326475+alvinlollo@users.noreply.github.com> Date: Mon, 14 Apr 2025 16:45:20 +1000 Subject: [PATCH] Fixed install.sh --- install.sh | 51 ++++++++++++++++----------------------------------- 1 file changed, 16 insertions(+), 35 deletions(-) diff --git a/install.sh b/install.sh index 5fe9674..306a171 100755 --- a/install.sh +++ b/install.sh @@ -18,9 +18,19 @@ echo ' # Fail on any command. set -eux pipefail -# Install prequisites +# Install prerequisites +echo "Install prerequisites" +echo sudo apt update -sudo apt install -y git zsh curl git build-essential +sudo apt install -y git zsh curl git build-essential whiptail +echo + +# Update system +echo "Update system" +echo +sudo apt full-upgrade -y +echo + # Do not print commands set +x set +eux @@ -29,22 +39,10 @@ echo ' --------------- Oh-My-zsh Install --------------- ' - # Print commands set -x -#/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -#echo >> ~/.bashrc -#echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc -#eval "$(/home/linuxbrew/.linuxbrew/bin/brew #shellenv)" - -# Prequises from homebrew -#brew update -#brew upgrade -#brew install fzf gcc thefuck gh - -# Disable exit on error -sudo apt install zsh fzf eza -y +sudo apt install zsh fzf -y # Installs Oh-My-Zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" @@ -118,27 +116,10 @@ sudo apt install -y python3 python3-pip git htop golang figlet irssi cmatrix neo set -x sudo apt full-upgrade -y -set +x -echo ' - - --------------- apt packages Install --------------- - -' -# Print commands -set -x - -#echo "Would you like to install CasaOS? [Y/N]: " -#read REPLY -#if [[ $REPLY =~ ^[y]$ ]]; then -# curl -fsSL https://get.casaos.io | sudo bash -#fi - -echo "Disabled" - # Add an update-all script -sudo rm -f /usr/local/bin/update-all -sudo curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/extras/update-all%20script -o /usr/local/bin/update-all -sudo chmod +x /usr/local/bin/update-all +#sudo rm -f /usr/local/bin/update-all +#sudo curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/extras/update-all%20script -o /usr/local/bin/update-all +#sudo chmod +x /usr/local/bin/update-all # Do not print commands set +x