summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-02 08:54:30 -0500
committerBen Sima <ben@bsima.me>2021-12-02 08:54:30 -0500
commitf4f931772225fbb34eaf6f096af38d73f2c9f9d1 (patch)
tree5a7f933a1ef7bcf258091b9b6280c0bb78916100
parent833de4152b3dbb234e5833c901fd4e8696fd8169 (diff)
fix syntax
-rwxr-xr-xhledger-allocation5
1 files changed, 4 insertions, 1 deletions
diff --git a/hledger-allocation b/hledger-allocation
index e706ba2..87a6541 100755
--- a/hledger-allocation
+++ b/hledger-allocation
@@ -1,5 +1,8 @@
+#!/usr/bin/env bash
-alias cleanup="tail -n1 | tr -d [:alpha:] | tr -d [:blank:] | tr -d [=,=]"
+function cleanup() {
+ tail -n1 $1 | tr -d [:alpha:] | tr -d [:blank:] | tr -d [=,=]
+}
networth=$(hledger bal ^as ^li --value=now,USD --output-format=csv \
| tail -n1 \