aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/KooLsDotsUpdate.sh
diff options
context:
space:
mode:
authorMartin Guzman <55927935+brockar@users.noreply.github.com>2026-01-24 19:45:52 -0300
committerGitHub <noreply@github.com>2026-01-24 19:45:52 -0300
commit6b9ef5fb2219ccbb3d42adb4b691c466991efc9f (patch)
tree74b141beda34510f7c44d5e82d2c6ed54c6bfbac /config/hypr/scripts/KooLsDotsUpdate.sh
parent035724daaf362eac452a781e20144cf893ed274f (diff)
parentd2fbf319bc3b09e4345dea390b85d328eb0318c0 (diff)
Merge pull request #931 from JaKooLit/development
Development to main: Fix upgrade bug
Diffstat (limited to 'config/hypr/scripts/KooLsDotsUpdate.sh')
-rwxr-xr-xconfig/hypr/scripts/KooLsDotsUpdate.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/hypr/scripts/KooLsDotsUpdate.sh b/config/hypr/scripts/KooLsDotsUpdate.sh
index a49f5430..006d66ed 100755
--- a/config/hypr/scripts/KooLsDotsUpdate.sh
+++ b/config/hypr/scripts/KooLsDotsUpdate.sh
@@ -17,12 +17,18 @@ fi
# GitHub URL - KooL's dots
branch="main"
github_url="https://github.com/JaKooLit/Hyprland-Dots/tree/$branch/config/hypr/"
+# Check for required tools (curl)
+if ! command -v curl &> /dev/null; then
+ notify-send -i "$iDIR/error.png" "Need curl:" "curl not found. Please install curl."
+ exit 1
+fi
# Fetch the version from GitHub URL - KooL's dots
-github_version=$(curl -s "$github_url" | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+' | sort -V | tail -n 1 | sed 's/v//')
+github_version=$(curl -fsSL -A "Mozilla/5.0" "$github_url" | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+' | sort -V | tail -n 1 | sed 's/v//')
# Cant find GitHub URL - KooL's dots version
if [ -z "$github_version" ]; then
+ notify-send -i "$iDIR/error.png" 'KooL Hyprland:' "Unable to determine GitHub version."
exit 1
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage