1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 20:15:07 +00:00

🐛 update no-cache

This commit is contained in:
Tw93
2025-10-03 22:26:17 +08:00
parent c3a5bfcd53
commit e98a2fb8bd

2
mole
View File

@@ -37,7 +37,7 @@ check_for_updates() {
# Background version check (save to file, don't output) # Background version check (save to file, don't output)
( (
local latest=$(curl -fsSL --connect-timeout 2 --max-time 3 \ local latest=$(curl -fsSL --connect-timeout 2 --max-time 3 -H "Cache-Control: no-cache" \
"https://raw.githubusercontent.com/tw93/mole/main/mole" 2>/dev/null | \ "https://raw.githubusercontent.com/tw93/mole/main/mole" 2>/dev/null | \
grep '^VERSION=' | head -1 | sed 's/VERSION="\(.*\)"/\1/') grep '^VERSION=' | head -1 | sed 's/VERSION="\(.*\)"/\1/')