Install git if needed for arch

This commit is contained in:
Daniel Flanagan 2020-11-07 22:27:33 -06:00
parent 40edd8d3c9
commit 2519a7424f
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -19,11 +19,13 @@ add_unstable_channel() {
} }
clone_dotfiles() { clone_dotfiles() {
if test $is_arch_linux -eq 1; then
pacman -S --needed git
fi
echo "Setting up dotfiles for $USER..." echo "Setting up dotfiles for $USER..."
mkdir --parents "$1" mkdir --parents "$1"
set +e rm -r "$1"
git clone "https://git.lyte.dev/lytedev/dotfiles" "$1" &>/dev/null git clone "https://git.lyte.dev/lytedev/dotfiles" "$1"
set -e
} }
symlink_nixos() { symlink_nixos() {