update dotfiles.sh script

This commit is contained in:
JaKooLit
2023-10-26 20:49:43 +09:00
parent 5d2250bb4d
commit 1432003f65

View File

@@ -15,11 +15,19 @@ LOG="install-$(date +'%d-%H%M%S')_dots.log"
printf "${NOTE} Downloading Hyprland dots...\n" printf "${NOTE} Downloading Hyprland dots...\n"
if git clone https://github.com/JaKooLit/Hyprland-Dots.git; then if [ -d Hyprland-Dots ]; then
cd Hyprland-Dots || exit 1 cd Hyprland-Dots
chmod +x copy.sh chmod +x copy.sh
./copy.sh 2>&1 | tee -a "$LOG" ./copy.sh 2>&1 | tee -a "$LOG"
else 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 fi