diff --git a/tinystatus b/tinystatus index 217b656..aeb1fc3 100755 --- a/tinystatus +++ b/tinystatus @@ -89,9 +89,9 @@ p { color: #B4B4FF; } EOF outagenb="$(find "${tmp}/ko" -mindepth 1 | grep -c 'status$')" if [ "${outagenb}" -ne 0 ]; then - echo "" + echo "" else - echo "" + echo "" fi cat << EOF

Services

@@ -101,23 +101,23 @@ for file in "${tmp}/ko/"*.status; do [ -e "${file}" ] || continue name="$(basename "${file}" | sed 's,.status$,,')" status="$(cat "${file}")" - echo "
  • ${name} (${status})Disrupted
  • " + echo "
  • ${name} (${status})Cassé
  • " done for file in "${tmp}/ok/"*.status; do [ -e "${file}" ] || continue name="$(basename "${file}" | sed 's,.status$,,')" - echo "
  • ${name} Operational
  • " + echo "
  • ${name} Operationel
  • " done cat << EOF

    Last check: $(date +%FT%T%z)

    EOF if [ -f "${incidentsfile}" ]; then - echo '

    Incidents

    ' + echo '

    Historique des incidents et maintenances

    ' if [ -s "${incidentsfile}" ]; then sed 's|^\(.*\)$|

    \1

    |' "${incidentsfile}" else - echo '

    No incident reported yet ;)

    ' + echo '

    Aucun incident n'est documenté ;)

    ' fi fi cat <