FIX script errors

This commit is contained in:
Nathan Dwarshuis 2021-02-15 21:26:15 -05:00
parent 1a998ff73b
commit de2b82daef
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
clone_maybe () { clone_maybe () {
if [ ! -d "$2" ]; if [ ! -d "$2" ]; then
echo cloning git repo: "$1" echo cloning git repo: "$1"
git clone --recurse-submodules "$1" "$2" git clone --recurse-submodules "$1" "$2"
else else
@ -9,8 +9,9 @@ clone_maybe () {
fi fi
} }
clone_maybe https://github.com/ndwarshuis/conky.git "$HOME/.config/conky"
clone_maybe https://github.com/ndwarshuis/.emacs.d.git "$HOME/.config/emacs" clone_maybe https://github.com/ndwarshuis/.emacs.d.git "$HOME/.config/emacs"
clone_maybe https://github.com/ndwarshuis/rofi-extras.git "$HOME/.config/rofi-extras" clone_maybe https://github.com/ndwarshuis/rofi-extras.git "$HOME/.config/rofi-extras"
clone_maybe https://github.com/ndwarshuis/xmonad-config.git "$HOME/.config/xmonad"
clone_maybe https://github.com/ndwarshuis/xman.git "$HOME/.config/xman" clone_maybe https://github.com/ndwarshuis/xman.git "$HOME/.config/xman"
clone_maybe https://github.com/ndwarshuis/xmonad-config.git "$HOME/.config/xmonad"

View File

@ -1 +1,3 @@
sudo yay -S stack-static #! /bin/bash
yay -S stack-static