From 38f24a43bbe202c64b2f457897837557a49e0055 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 01:20:42 +0900 Subject: [PATCH] added dotfiles-main.sh to download from main instead of from releases --- install-scripts/dotfiles-main.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 install-scripts/dotfiles-main.sh diff --git a/install-scripts/dotfiles-main.sh b/install-scripts/dotfiles-main.sh new file mode 100644 index 0000000..8c61643 --- /dev/null +++ b/install-scripts/dotfiles-main.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # +# Hyprland-Dots to download from main # + +## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## + +source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" + +# Check if Hyprland-Dots exists +printf "${NOTE} Downloading KooL's Hyprland Dots....\n" + +if [ -d Hyprland-Dots ]; then + cd Hyprland-Dots + git stash + git pull + git stash apply + chmod +x copy.sh + ./copy.sh +else + if git clone --depth 1 https://github.com/JaKooLit/Hyprland-Dots; then + cd Hyprland-Dots || exit 1 + chmod +x copy.sh + ./copy.sh + else + echo -e "$ERROR Can't download Hyprland-Dots" + fi +fi + +clear