Skip to content

Commit 7f41df6

Browse files
🩹 fix(system.status.badge): Fix memoize error count.
1 parent 7d9b419 commit 7f41df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bin/system.status.badge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ color_good="#85bd85"
44
color_degraded="#C5E946"
55
color_bad="#CF4647"
66

7-
failures1=$(cat "$HOME/".cache/memoize/*/R | grep -c '^[1-9]')
7+
failures1=$(grep -o '^[1-9]' "$HOME/".cache/memoize/*/R | wc -l)
88
failures2=$(systemctl --user show | grep '^NFailedUnits=' | cut -d '=' -f2)
99

1010
>&2 echo "memoize failures: $failures1"

0 commit comments

Comments
 (0)