fixed the shift problem

This commit is contained in:
Gordon Grant-Stuart 2022-11-24 15:14:38 +00:00
parent 1b4f6f0a31
commit 9cd1903538
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
show.yml
show.yml
show_full.yml

View File

@ -60,7 +60,7 @@ function category () {
SHOW=$(mktemp /tmp/XXXXXX)
sudo yunohost diagnosis show --full > $SHOW
# SHOW="show.yml"
# SHOW="show_full.yml"
LAST_DIAGNOSIS=$(( ($(date +%s) - $(cat $SHOW | grep timestamp | tail -n1 | grep -o '[0-9]*') )/3600 ))
@ -70,7 +70,7 @@ ERRORS=$(cat $SHOW | category "${1}" | grep -c "^ *status: ERROR")
CHECK_TYPE='category'
while [[ $# -gt 0 ]]; do
while [[ $# -gt 1 ]]; do
case "${1}" in
-h)
help