Browse Source

Generalize user home dir

Use the `$HOME` env var rather than hard-code.

This change should be POSIX compliant and work across shells.
Tyler Cipriani 2 years ago
parent
commit
1c227969ba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bin/commandlog-add

+ 1
- 1
bin/commandlog-add View File

@@ -26,7 +26,7 @@ use Cwd;
26 26
 use DBI;
27 27
 use Sys::Hostname;
28 28
 
29
-my $dbfile = "/home/brennen/cli.db";
29
+my $dbfile = $ENV{HOME} . "/cli.db";
30 30
 
31 31
 my $init_new = 0;
32 32
 $init_new = 1 unless -f $dbfile;

Loading…
Cancel
Save