mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
This commit is contained in:
commit
e020416603
@ -17,7 +17,7 @@ update() {
|
|||||||
read -r i < "$arg"
|
read -r i < "$arg"
|
||||||
sum=$(( sum + i ))
|
sum=$(( sum + i ))
|
||||||
done
|
done
|
||||||
cache=${XDG_CACHE_HOME:-$HOME/.cache}/${1##*/}
|
cache=/tmp/${1##*/}
|
||||||
[ -f "$cache" ] && read -r old < "$cache" || old=0
|
[ -f "$cache" ] && read -r old < "$cache" || old=0
|
||||||
printf %d\\n "$sum" > "$cache"
|
printf %d\\n "$sum" > "$cache"
|
||||||
printf %d\\n $(( sum - old ))
|
printf %d\\n $(( sum - old ))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user