diff options
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("","","","!$_"); |