From 47008a2bfbe066dda3e122b087a4a025f0390cf2 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 11 Oct 2008 19:47:07 +0000 Subject: [PATCH] * default to .todo if TODODB not set --- stodo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2