mirror of https://github.com/jimsalterjrs/sanoid
missed one regular expression
This commit is contained in:
parent
e260f9095f
commit
adca6230b7
2
syncoid
2
syncoid
|
|
@ -919,7 +919,7 @@ sub getssh {
|
||||||
if ($fs =~ /\@/) {
|
if ($fs =~ /\@/) {
|
||||||
$rhost = $fs;
|
$rhost = $fs;
|
||||||
$fs =~ s/^\S*\@\S*://;
|
$fs =~ s/^\S*\@\S*://;
|
||||||
$rhost =~ s/:$fs$//;
|
$rhost =~ s/:\Q$fs\E$//;
|
||||||
my $remoteuser = $rhost;
|
my $remoteuser = $rhost;
|
||||||
$remoteuser =~ s/\@.*$//;
|
$remoteuser =~ s/\@.*$//;
|
||||||
if ($remoteuser eq 'root') { $isroot = 1; } else { $isroot = 0; }
|
if ($remoteuser eq 'root') { $isroot = 1; } else { $isroot = 0; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue