Skip to content

Commit

Permalink
notes-mode/mkconfig: don't reference undefined envvar NOTES_BIN_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-schwab committed Dec 26, 2012
1 parent 13332f0 commit c6b386e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkconfig
Expand Up @@ -32,10 +32,11 @@ my($home_dir) = ((getpwuid($<))[7]);

my(%defaults) = (
'dir' => ['path', '~/NOTES'],
'bin_dir' => ['path', "$ENV{'NOTES_BIN_DIR'}"],
'int_form' => ['form', '%Y%m'],
'file_form' => ['form', '%y%m%d'],
);
$defaults{'bin_dir'} = ['path', "$ENV{'NOTES_BIN_DIR'}"]
if defined($ENV{'NOTES_BIN_DIR'});

my($key, $value, %notes);
while (($key, $value) = each %defaults) {
Expand Down

0 comments on commit c6b386e

Please sign in to comment.