Просмотр исходного кода

add switches, routers for update wiki names

Dmitriev Roman 5 лет назад
Родитель
Сommit
e569daacc2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/wiki/update_auth_wiki.pl

+ 1 - 1
docs/wiki/update_auth_wiki.pl

@@ -51,7 +51,7 @@ exit;
 sub wanted {
 my $filename = $File::Find::name;
 my $dev_name = basename($filename);
-if ($filename =~/\.txt$/ and $filename=~/Device/) {
+if ($filename =~/\.txt$/ and $dev_name=~/^(Device|Switch|Router|Gateway)/) {
     $dev_name=~s/\.txt$//;
     $content{$dev_name}=$filename;
     }