|
|
@ -1,4 +1,4 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/zsh |
|
|
|
|
|
|
|
PATH=/Users/tblancher/bin:/Users/tblancher/homebrew/opt/coreutils/libexec/gnubin:/usr/bin:/bin |
|
|
|
[[ "${1}" == "-i" ]] && IGNORE_DO_PROCESS=1 && shift |
|
|
@ -19,6 +19,9 @@ for date in $(date +%F -d "${DATE}") \ |
|
|
|
if [[ -f ${date}.log ]]; then |
|
|
|
[[ -n $IGNORE_DO_PROCESS ]] || ./do_process.sh ${date}.log | less |
|
|
|
daily_total=$(./do_process.sh ${date}.log | grep -P "Grand total:" | grep -Po "\d+\.\d+") |
|
|
|
if [[ ${daily_total} -gt 24 ]]; then |
|
|
|
daily_total=24.00 |
|
|
|
fi |
|
|
|
else |
|
|
|
daily_total=0 |
|
|
|
fi |
|
|
|