From 2519a7424f59d73b352f9213cf928386032e2ffc Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 7 Nov 2020 22:27:33 -0600 Subject: [PATCH] Install git if needed for arch --- bin/init-dotfiles | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/init-dotfiles b/bin/init-dotfiles index f402da8..e61ce9f 100755 --- a/bin/init-dotfiles +++ b/bin/init-dotfiles @@ -19,11 +19,13 @@ add_unstable_channel() { } clone_dotfiles() { + if test $is_arch_linux -eq 1; then + pacman -S --needed git + fi echo "Setting up dotfiles for $USER..." mkdir --parents "$1" - set +e - git clone "https://git.lyte.dev/lytedev/dotfiles" "$1" &>/dev/null - set -e + rm -r "$1" + git clone "https://git.lyte.dev/lytedev/dotfiles" "$1" } symlink_nixos() {