diff options
Diffstat (limited to 'utils/svn-testament.pl')
-rwxr-xr-x | utils/svn-testament.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/svn-testament.pl b/utils/svn-testament.pl index 2412064dd..6196e5acf 100755 --- a/utils/svn-testament.pl +++ b/utils/svn-testament.pl @@ -84,7 +84,7 @@ $qroot =~ s/"/\\"/g; my $hostname = $ENV{HOSTNAME}; -if ( $hostname eq "" ) { # Try hostname command if env-var empty +if ( !defined ( $hostname ) ) { # Try hostname command if env-var empty $hostname = `hostname`; chomp $hostname; } |