From 9cd1903538f8449d087ce7606465798f40fcd622 Mon Sep 17 00:00:00 2001 From: Gordon Grant-Stuart Date: Thu, 24 Nov 2022 15:14:38 +0000 Subject: [PATCH] fixed the shift problem --- .gitignore | 3 ++- check_yunohost.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e372211..640d30c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -show.yml \ No newline at end of file +show.yml +show_full.yml \ No newline at end of file diff --git a/check_yunohost.sh b/check_yunohost.sh index 5f5146f..53d298f 100755 --- a/check_yunohost.sh +++ b/check_yunohost.sh @@ -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