Fix arch install

This commit is contained in:
David Todd 2018-10-23 00:26:46 -05:00
parent 5303a7077a
commit d7c28f36be
2 changed files with 7 additions and 6 deletions

View File

@ -3,8 +3,8 @@
# This ensures that the entire script is downloaded before execution
{
pacman -Syu
pacman -S yay
sudo pacman -Syu
sudo pacman -S yay
yay -Syu

View File

@ -39,14 +39,13 @@ function symlink() {
read -p "Press enter to install my dotfiles " WAIT_FOR_INPUT
echo "[Dotfiles] Would you like to detect distro and auto-install dependencies? [Y/n]: \c"
read line
read -p "[Dotfiles] Would you like to detect distro and auto-install dependencies? [Y/n]: " line
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
distrourl="https://raw.githubusercontent.com/alopexc0de/dotfiles/master/.bin"
if [ -f /etc/arch-release ]; then
bash <(curl -sL $distrourl/install.deb)
elif [ -f /etc/debian_version]; then
bash <(curl -sL $distrourl/install.arch)
elif [ -f /etc/debian_version ]; then
bash <(curl -sL $distrourl/install.deb)
else
echo "This system does not have an auto-install file. Please install the following packages manually"
echo "- tmux zsh vim git"
@ -55,6 +54,8 @@ if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
fi
fi
exit
if ! which git >>/dev/null ; then
echo "Error: git is not installed"
exit 1