biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / monitoring / plugins / wmiplus / wmiplus_fix_manpage.patch
blob16e81d1014d2be41fc971a4dba31810189d08d90
1 diff --git a/check_wmi_plus.makeman.sh b/check_wmi_plus.makeman.sh
2 index 38dc7a4..3fe4369 100755
3 --- a/check_wmi_plus.makeman.sh
4 +++ b/check_wmi_plus.makeman.sh
5 @@ -19,15 +19,6 @@ mkdir -p "$manpage_dir/man1"
6 # the full path to the manpage file
7 manfile="$manpage_dir/man1/check_wmi_plus.1"
9 -# if we are not running in a terminal then only show the text-based help
10 -if [ ! -t 0 ]; then
11 - # we are not running in a terminal
12 - echo "Not running in a terminal - showing text-based help"
13 - echo
14 - exec $check_wmi_plus_text_help
15 -fi
18 usage()
20 cat << EOT
21 diff --git a/check_wmi_plus_help.pl b/check_wmi_plus_help.pl
22 index 3440db2..2982da2 100755
23 --- a/check_wmi_plus_help.pl
24 +++ b/check_wmi_plus_help.pl
25 @@ -24,7 +24,7 @@ if ($opt_help) {
26 # we have the script to make the manpage and have not been asked to show text only help
27 exec ("$make_manpage_script \"$0 --itexthelp\" \"$manpage_dir\"") or print STDERR "couldn't exec $make_manpage_script: $!";
28 } else {
29 - print "Warning: Can not access/execute Manpage script ($make_manpage_script).\nShowing help in text-only format.\n\n";
30 + # print "Warning: Can not access/execute Manpage script ($make_manpage_script).\nShowing help in text-only format.\n\n";
34 @@ -692,4 +692,4 @@ show_ini_help_overview(1);
35 finish_program($ERRORS{'UNKNOWN'});
38 -1;
39 \ No newline at end of file
40 +1;