more tolerant parsing of credential file
This commit is contained in:
parent
e7af75898f
commit
defe773283
|
@ -44,7 +44,7 @@ sub _read_cred {
|
||||||
open(FN, "<$fn") or die "cannot open $fn: $!";
|
open(FN, "<$fn") or die "cannot open $fn: $!";
|
||||||
my $line = <FN>;
|
my $line = <FN>;
|
||||||
close(FN);
|
close(FN);
|
||||||
my @cred = split(/[\s\n]/, $line);
|
my @cred = split(/\s+/, $line);
|
||||||
return @cred;
|
return @cred;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue