diff options
author | Christian Segundo | 2024-02-11 15:05:41 +0100 |
---|---|---|
committer | Christian Segundo | 2024-02-11 15:05:41 +0100 |
commit | 957018b24baa56eeefa3b7d9abc0e320b9ed38f8 (patch) | |
tree | 6ba8b9bd9e659f57b9194504ba8479d8c2103238 | |
parent | b0d724a02ec39afafe636597265d7a59059b7daa (diff) | |
download | ledger-fava-957018b24baa56eeefa3b7d9abc0e320b9ed38f8.tar.gz |
-rw-r--r-- | src/init.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/init.sh b/src/init.sh index 32aa300..e926940 100644 --- a/src/init.sh +++ b/src/init.sh @@ -7,7 +7,7 @@ PORT=${PORT:-5000} LEDGER_ROOT=${LEDGER_ROOT:-/ledger} LEDGER2BEANCOUNT_CONFIG=${LEDGER2BEANCOUNT_CONFIG:-$(cat ~/.ledger2beancount.yaml)} ADDITIONAL_CONFIG=${ADDITIONAL_CONFIG:-$( - cat <<EOF + cat <<EOF option "operating_currency" "EUR" 2016-04-14 custom "fava-option" "language" "en" 2016-04-14 custom "fava-option" "invert-income-liabilities-equity" "true" @@ -26,8 +26,8 @@ echo tmp_file=$(mktemp) while read -r ledger_file; do - echo "Processing ${ledger_file}" - ledger2beancount -c ~/.ledger2beancount.yaml "$(realpath "${ledger_file}")" >>"${tmp_file}" + echo "Processing ${ledger_file}" + ledger2beancount -c ~/.ledger2beancount.yaml "$(realpath "${ledger_file}")" >>"${tmp_file}" done < <(find "${LEDGER_ROOT}" -type f -name '*.ledger') bean-check "${tmp_file}" @@ -35,8 +35,8 @@ bean-check "${tmp_file}" echo "${ADDITIONAL_CONFIG}" >>"${tmp_file}" fava \ - --host 0.0.0.0 \ - --port "${PORT}" \ - --read-only \ - "${tmp_file}" + --host 0.0.0.0 \ + --port "${PORT}" \ + --read-only \ + "${tmp_file}" rm "${tmp_file}" |