From 1432003f65d44e2b81067d0a703c9c54c301269e Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 26 Oct 2023 20:49:43 +0900 Subject: [PATCH] update dotfiles.sh script --- install-scripts/dotfiles.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/install-scripts/dotfiles.sh b/install-scripts/dotfiles.sh index 679cbcf..dd62596 100644 --- a/install-scripts/dotfiles.sh +++ b/install-scripts/dotfiles.sh @@ -15,11 +15,19 @@ LOG="install-$(date +'%d-%H%M%S')_dots.log" printf "${NOTE} Downloading Hyprland dots...\n" -if git clone https://github.com/JaKooLit/Hyprland-Dots.git; then - cd Hyprland-Dots || exit 1 +if [ -d Hyprland-Dots ]; then + cd Hyprland-Dots chmod +x copy.sh ./copy.sh 2>&1 | tee -a "$LOG" else - echo -e "${ERROR} Cant download Hyprland-Dots" 2>&1 | tee -a "$LOG" + if git clone https://github.com/JaKooLit/Hyprland-Dots.git; then + cd Hyprland-Dots || exit 1 + chmod +x copy.sh + ./copy.sh 2>&1 | tee -a "$LOG" + else + echo -e "${ERROR} Can't download Hyprland-Dots" 2>&1 | tee -a "$LOG" + fi fi + +