commit a1420ec26f017805ccaa1222038dc94f94428060
parent 43e3952ed974d68f50f509badd12b2c0a31b7da0
Author: Tomas Nemec <nemi@skaut.cz>
Date: Mon, 2 Jan 2023 15:56:09 +0100
chore: fmt
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fio-month-expense b/fio-month-expense
@@ -3,11 +3,11 @@
#
# usage: fin-month-expense <month number>
-month=$1
+month="$1"
[[ -z "$month" ]] && exit 1
year="$(date +%Y)"
from="$year-$month-01"
-to=$(date -d "$year-$(($month+1))-01 -1 day" +'%Y-%m-%d')
+to=$(date -d "$year-$(($month + 1))-01 -1 day" +'%Y-%m-%d')
fio -a personal t p -f $from -t $to | jq '.[] | select(.money < 0)'