diff options
author | Tar Committer <tar@ocjtech.us> | 2001-08-15 21:16:40 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2001-08-15 21:16:40 +0000 |
commit | 10cc9157892d7902dddde70a5b9b2046d0c376ea (patch) | |
tree | f962debc7088fc42948848cd9e6ad05db4a4cd69 /bin/brancid.in | |
parent | d19de03be4d4ad086ab9446e4196afdd6891fb79 (diff) | |
download | rancid-fa548b164e053f3d7a8530dc67b7de94686512f0.tar.gz rancid-fa548b164e053f3d7a8530dc67b7de94686512f0.tar.xz rancid-fa548b164e053f3d7a8530dc67b7de94686512f0.zip |
Imported from rancid-2.2b7.tar.gz.rancid-2.2b7
Diffstat (limited to 'bin/brancid.in')
-rwxr-xr-x | bin/brancid.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/brancid.in b/bin/brancid.in index 5614ccc..6beb78f 100755 --- a/bin/brancid.in +++ b/bin/brancid.in @@ -140,8 +140,12 @@ sub ShowConfig { last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Reading configuration information/); - return(1) if /(Invalid input detected|Type help or )/; - return(-1) if (/command authorization failed/i); + if (/community label /) { + if (defined($ENV{'NOCOMMSTR'})) { + $_ =~ s/community label .*$/community label <removed>/; + } + } + return(1) if /(invalid command name)/; ProcessHistory("","","","$_"); } # ProcessHistory("","","","!$_"); |