]> granicus.if.org Git - fortune-mod/commitdiff
avoid undef warn
authorShlomi Fish <shlomif@shlomifish.org>
Mon, 24 Jun 2019 20:20:21 +0000 (23:20 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Mon, 24 Jun 2019 20:20:21 +0000 (23:20 +0300)
scripts/Tatzer

index bbd7fdbe88791b4b670ceedd28060d464037b4da..2483decc6f81811c2cdfe7639732552c512278a8 100755 (executable)
@@ -125,7 +125,7 @@ if ( defined $SEED )
     exec( "bash", $FN );
 }
 
-my $HOME = $ENV{HOME};
+my $HOME = $ENV{HOME} // $ENV{userprofile} // "";
 
 foreach my $rec (
     { id => "c2",  a => "core2", },