1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 19:00:10 +01:00

[fix] do not spit out error messages for utils/lxc.sh --help

Error::

  $ utils/lxc.sh --help
  ERROR: missing command lxc
  ...

This breaks also docs build::

  $ make docs
  ...
  WARNING: Unexpected return code 42 from command '../utils/lxc.sh --help'
  ...

Signed-off-by: Markus Heiser <markus@darmarit.de>
This commit is contained in:
Markus Heiser 2021-02-22 20:10:18 +01:00 committed by Markus Heiser
parent d5eaa3fb31
commit 438d35c386

View File

@ -142,7 +142,7 @@ main() {
local _usage="unknown or missing $1 command $2" local _usage="unknown or missing $1 command $2"
# don't check prerequisite when in recursion # don't check prerequisite when in recursion
if [[ ! $1 == __* ]]; then if [[ ! $1 == __* ]] && [[ ! $1 == --help ]]; then
if ! in_container; then if ! in_container; then
! required_commands lxc && lxd_info && exit 42 ! required_commands lxc && lxd_info && exit 42
fi fi