mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
bug fix : optoin -w and -c were required even if option -n was not precised.
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@6901 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
2fbb5c45bd
commit
8a4fd4e446
@ -83,7 +83,7 @@ if (!$opt_H) {
|
||||
exit $ERRORS{'OK'};
|
||||
}
|
||||
|
||||
if ($opt_n && !$opt_c || !$opt_w) {
|
||||
if ($opt_n && (!$opt_c || !$opt_w)) {
|
||||
print_usage();
|
||||
exit $ERRORS{'OK'};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user