mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-20 00:06:25 +10:00
Add Disclaimer
This commit is contained in:
+5
-1
@@ -1,6 +1,10 @@
|
|||||||
# Install prerequisetes
|
# Install prerequisetes
|
||||||
sudo pacman -S --needed --noconfirm git curl wget python3 python-pip
|
sudo pacman -S --needed --noconfirm git curl wget python3 python-pip
|
||||||
|
|
||||||
|
# Show nvim config replacement
|
||||||
|
echo 'This script will move your old nvim config to ~/.local/share/nvim.bak'
|
||||||
|
sleep 20 && echo "Use CTRL+C within 20 secconds if you don't want these actions to be made"
|
||||||
|
|
||||||
# Remove old backups
|
# Remove old backups
|
||||||
if [ -e "~/.config/nvim.bak" ]; then
|
if [ -e "~/.config/nvim.bak" ]; then
|
||||||
# The path exists (it could be a file, a directory, a symlink, etc.)
|
# The path exists (it could be a file, a directory, a symlink, etc.)
|
||||||
@@ -38,6 +42,6 @@ git clone https://github.com/alvinlollo/LazyVim ~/.config/nvim
|
|||||||
|
|
||||||
# Dependencys for Gdoc.vim
|
# Dependencys for Gdoc.vim
|
||||||
wget https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/requirements.txt
|
wget https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/requirements.txt
|
||||||
pip3 install -r requirements.txt --break-system-packages
|
pip3 install -r requirements.txt --break-system-packages && rm requirements.txt
|
||||||
|
|
||||||
echo "pip3 install -r requirements.txt"
|
echo "pip3 install -r requirements.txt"
|
||||||
|
|||||||
+24
-4
@@ -9,7 +9,7 @@ echo '
|
|||||||
|____/ \__ | \__ _|_| \_/ |_|_| |_|_|\___/|_|_|\___/
|
|____/ \__ | \__ _|_| \_/ |_|_| |_|_|\___/|_|_|\___/
|
||||||
|___/
|
|___/
|
||||||
|
|
||||||
--------------- Single Download script (BETA) ---------------
|
--------------- Single Download script (Beta) ---------------
|
||||||
BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE UNDER THE GPL-2.0 LICENCE, THERE IS NO WARRANTY
|
BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE UNDER THE GPL-2.0 LICENCE, THERE IS NO WARRANTY
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. See the LICENCE for more detail
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. See the LICENCE for more detail
|
||||||
'
|
'
|
||||||
@@ -24,12 +24,32 @@ function error_handler() {
|
|||||||
trap error_handler ERR
|
trap error_handler ERR
|
||||||
|
|
||||||
#Install prerequisites
|
#Install prerequisites
|
||||||
sudo pacman -Syu git zsh curl --noconfirm --needed
|
sudo pacman -Syu git zsh curl wget whiptail --noconfirm --needed
|
||||||
|
|
||||||
|
if command -v pacman >/dev/null; then
|
||||||
|
echo "pacman detected. Installing prerequisites"
|
||||||
|
sudo pacman -Syu git zsh curl wget whiptail golang fakeroot debugedit make gcc --noconfirm --needed
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v apt >/dev/null; then
|
||||||
|
echo "apt detected. Installing prerequisites"
|
||||||
|
sudo apt install git zsh curl wget whiptail -y
|
||||||
|
fi
|
||||||
|
|
||||||
# Ensure whiptail is installed
|
# Ensure whiptail is installed
|
||||||
if ! command -v whiptail >/dev/null; then
|
if ! command -v whiptail >/dev/null; then
|
||||||
echo "whiptail is not installed. Installing it now..."
|
echo "whiptail is not installed. Installing it now..."
|
||||||
sudo pacman -S --noconfirm whiptail || { echo "Failed to install whiptail. Exiting."; exit 1; }
|
|
||||||
|
if command -v pacman >/dev/null; then
|
||||||
|
echo "pacman detected. Installing prerequisites"
|
||||||
|
sudo pacman -S whiptail --noconfirm || { echo "Failed to install whiptail. Exiting."; exit 1; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v apt >/dev/null; then
|
||||||
|
echo "apt detected. Installing prerequisites"
|
||||||
|
sudo apt install whiptail -y || { echo "Failed to install whiptail. Exiting."; exit 1; }
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Options for the whiptail menu
|
# Options for the whiptail menu
|
||||||
@@ -89,7 +109,7 @@ for selection in $CHOICE; do
|
|||||||
;;
|
;;
|
||||||
"5")
|
"5")
|
||||||
echo "Installing Yay and Yay Packages..."
|
echo "Installing Yay and Yay Packages..."
|
||||||
if ! sudo pacman -S --needed --noconfirm efibootmgr sbsigntools mokutil sbctl; then # These were in the original script before yay install
|
if ! sudo pacman -S --needed --noconfirm efibootmgr sbsigntools mokutil sbctl; then
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
echo "Failed to install prerequisite packages for Yay. You can try running it manually:"
|
echo "Failed to install prerequisite packages for Yay. You can try running it manually:"
|
||||||
echo "sudo pacman -S --needed --noconfirm efibootmgr sbsigntools mokutil sbctl"
|
echo "sudo pacman -S --needed --noconfirm efibootmgr sbsigntools mokutil sbctl"
|
||||||
|
|||||||
Reference in New Issue
Block a user