16 lines
454 B
Bash
Executable File
16 lines
454 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# NOTE: It does not seem that aliases are properly expanded when reconciling
|
|
# with ledgerbil. You'll need to make sure you reconcile with the value actually
|
|
# used for the accounts in the transaction.
|
|
|
|
if [ ${#} -ne 1 ]; then
|
|
echo "Must provide an account name to reconcile."
|
|
echo "Usage: ${0} account_name"
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
${SCRIPTPATH}/ledgerbil --reconcile ${1}
|