Some error handling
This commit is contained in:
23
user.sh
23
user.sh
@@ -10,26 +10,19 @@ pulseaudio --start
|
||||
|
||||
|
||||
printf "${BLUE}Installing packer as an AUR manager...\n${NC}"
|
||||
wget https://aur.archlinux.org/cgit/aur.git/snapshot/packer.tar.gz
|
||||
tar -xvzf packer.tar.gz
|
||||
cd packer
|
||||
makepkg --noconfirm -si
|
||||
cd ..
|
||||
rm -rf packer/
|
||||
rm packer.tar.gz
|
||||
|
||||
aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;}
|
||||
|
||||
aurinstall packer || echo "Error installing packer." && exit
|
||||
|
||||
printf "${BLUE}Installing AUR programs...\n${NC}"
|
||||
printf "${BLUE}(May take some time.)\n${NC}"
|
||||
packer --noconfirm -S i3-gaps vim-pathogen vim-live-latex-preview neofetch i3lock tamzen-font-git neomutt transmission-remote-cli-git unclutter-xfixes-git urxvt-resize-font-git ttf-ancient-fonts polybar-git python-pywal xfce-theme-blackbird
|
||||
packer --noconfirm -S i3-gaps vim-pathogen vim-live-latex-preview neofetch i3lock tamzen-font-git neomutt transmission-remote-cli-git unclutter-xfixes-git urxvt-resize-font-git ttf-ancient-fonts polybar-git python-pywal xfce-theme-blackbird || echo "Error installing AUR packages. Check your internet connections and pacman keys." && exit
|
||||
#packer --noconfirm -S ncpamixer-git speedometer cli-visualizer
|
||||
|
||||
printf "${BLUE}Downloading config files...\n${NC}"
|
||||
git clone https://github.com/lukesmithxyz/voidrice.git
|
||||
rsync -va voidrice/ /home/$USER
|
||||
git clone https://github.com/lukesmithxyz/latex-templates.git
|
||||
mkdir -p /home/$USER/Documents/LaTeX
|
||||
rsync -va latex-templates /home/$USER/Documents/LaTeX
|
||||
sudo rm -rf voidrice
|
||||
sudo rm -rf latex-templates
|
||||
git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$USER && rm -rf voidrice
|
||||
git clone https://github.com/lukesmithxyz/latex-templates.git && mkdir -p /home/$USER/Documents/LaTeX && rsync -va latex-templates /home/$USER/Documents/LaTeX && rm -rf latex-templates
|
||||
|
||||
printf "${BLUE}Generating bash/ranger/qutebrowser shortcuts...\n${NC}"
|
||||
python ~/.config/Scripts/shortcuts.py
|
||||
|
||||
Reference in New Issue
Block a user