diff options
author | Will Andrews <will@FreeBSD.org> | 2000-07-03 19:58:41 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2000-07-03 19:58:41 +0000 |
commit | ed1447026cfe1122fe56f689ed16dc9bb4e5765f (patch) | |
tree | e094e8fdb79525ea75e415e69c0562f0c83bacbb /Tools | |
parent | Add the cyrix driver. (diff) |
Allow existing CVS_RSH environment var to take precedent.
Submitted by: sobomax
Notes
Notes:
svn path=/head/; revision=30146
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/addport | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index b942e3f3b04e..c8eba80582e0 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -32,7 +32,9 @@ my $tmpdir; my $pwd; my $repo; my $ssh; -$ENV{CVS_RSH} = "ssh"; +if( !defined $ENV{"CVS_RSH"} ) { + $ENV{CVS_RSH} = "ssh"; +} my $make = "make"; my $portlint = "portlint -N -a -c"; my $perl = "perl"; @@ -45,7 +47,7 @@ my $category; # now check to make sure this isn't running on freefall chomp(my $myhost = lc(`hostname`)); if ($myhost ne lc($h)) { - $ssh = "ssh $u\@$h"; + $ssh = "$ENV{CVS_RSH} $u\@$h"; $repo = "$u\@$h:/home/ncvs"; } else { $ssh = ""; |