This commit is contained in:
2025-09-27 01:01:01 +04:00
parent 959300bc41
commit 4dc5660e60
51 changed files with 2502 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -u
cache_file="$HOME/.cache/geoip"
cache_time=$(date -r "$cache_file" +%s)
yesterday_time=$(date -d 'now - 6 hour' +%s)
start_of_day=$(date -d '00:00' +%s)
if [ ! -f "$cache_file" ] || [ $cache_time -lt $yesterday_time ] || [ $cache_time -lt $start_of_day ]; then
curl -sL https://manjaro-sway.download/geoip >"$cache_file"
fi
cat "$cache_file"