From: Don Armstrong Date: Sat, 11 Oct 2008 19:47:07 +0000 (+0000) Subject: * default to .todo if TODODB not set X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=47008a2bfbe066dda3e122b087a4a025f0390cf2;p=bin.git * default to .todo if TODODB not set --- diff --git a/stodo b/stodo index 7a3c87c..48acf4f 100755 --- a/stodo +++ b/stodo @@ -105,7 +105,7 @@ pod2usage({verbose=>2}) if $options{man}; $DEBUG = $options{debug}; # Figure out what we're doing -my $tododb = $ENV{TODODB}; +my $tododb = exists $ENV{TODODB} ? $ENV{TODODB} : '.todo'; if ($tododb !~ m#^/#) { $tododb = cwd().'/'.$tododb; }