From a95134c20174fb5e8f9ef4e09709e11d6e510092 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 24 Nov 2017 15:33:40 +0100 Subject: [PATCH] hardcode fallback ledger file location --- ledger.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger.cr b/ledger.cr index 3c17aa2..16d736e 100644 --- a/ledger.cr +++ b/ledger.cr @@ -5,7 +5,7 @@ require "xml" # Crystal wrapper module for calling ledger class Ledger - def initialize( binary : String = "ledger", ledger_file : String = ENV[ "LEDGER_FILE" ] ) + def initialize( binary : String = "ledger", ledger_file : String = ENV[ "LEDGER_FILE" ] ||= "/home/cycojesus/org/comptes.ledger" ) @binary = binary @file = ledger_file end