diff --git a/ledger.cr b/ledger.cr index b50d158..26e4f7c 100644 --- a/ledger.cr +++ b/ledger.cr @@ -6,7 +6,7 @@ class Ledger @last_mtime : Time def initialize( binary : String = "ledger", - ledger_file : String = ENV[ "LEDGER_FILE" ] ||= "${ENV[ \"HOME\" ]}/org/comptes.ledger" ) + ledger_file : String = ENV[ "LEDGER_FILE" ] ||= "#{ENV[ "HOME" ]}/org/comptes.ledger" ) @binary = binary @file = ledger_file @last_mtime = File.info(@file).modification_time