From f4f931772225fbb34eaf6f096af38d73f2c9f9d1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 2 Dec 2021 08:54:30 -0500 Subject: fix syntax --- hledger-allocation | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 \ -- cgit v1.2.3