Check for wget and fix package name (keyring -> keychain)

main
Ian Mancini 5 years ago
parent 95ccc39a93
commit 1b5f55dd8b

@ -1 +1 @@
openssh rsync keyring
openssh rsync keychain

@ -1,12 +1,30 @@
#!/bin/sh
set -Eeuo pipefail
set -uo pipefail
if (( $EUID != 0 )); then
echo "Should be run as root"
exit 1
fi
# Enable wget?
read -p ":: Enable wget? [Y/n] " enablewget
enablewget=${enablewget:-Y}
if [[ $enablewget =~ [yY] ]]; then
echo ":: Checking if wget is installed"
pacman -Q wget &> /dev/null
if [ $? = 1 ]; then
echo ":: Installing wget"
pacman -Syu wget
else
echo ":: Success: wget is installed"
fi
echo "Enabling wget"
sed -i '/XferCommand \= \/usr\/bin\/wget/s/^#//g' /etc/pacman.conf
fi
# Enable multilib?
read -p ":: Enable multilib? [Y/n] " enablemultilib
enablemultilib=${enablemultilib:-Y}
@ -22,12 +40,3 @@ Include = /etc/pacman.d/mirrorlist
EOF
fi
fi
# Enable wget?
read -p ":: Enable wget? [Y/n] " enablewget
enablewget=${enablewget:-Y}
if [[ $enablewget =~ [yY] ]]; then
echo "Enabling wget"
sed -i '/XferCommand \= \/usr\/bin\/wget/s/^#//g' /etc/pacman.conf
fi

Loading…
Cancel
Save