summaryrefslogtreecommitdiff
path: root/utils/lxc.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus@darmarit.de>2021-02-22 20:10:18 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-04-23 11:14:29 +0200
commit438d35c38670a21fb646c3d3db0c07d0611c5cb4 (patch)
tree127e7d77486312f276f0817628a8fcfe12655047 /utils/lxc.sh
parentd5eaa3fb314bb773ae6582528d4fae39224408e5 (diff)
downloadsearxng-438d35c38670a21fb646c3d3db0c07d0611c5cb4.tar.gz
searxng-438d35c38670a21fb646c3d3db0c07d0611c5cb4.zip
[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>
Diffstat (limited to 'utils/lxc.sh')
-rwxr-xr-xutils/lxc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lxc.sh b/utils/lxc.sh
index 79cb1c04f..f065bf3c7 100755
--- a/utils/lxc.sh
+++ b/utils/lxc.sh
@@ -142,11 +142,11 @@ main() {
local _usage="unknown or missing $1 command $2"
# don't check prerequisite when in recursion
- if [[ ! $1 == __* ]]; then
+ if [[ ! $1 == __* ]] && [[ ! $1 == --help ]]; then
if ! in_container; then
! required_commands lxc && lxd_info && exit 42
fi
- [[ -z $LXC_SUITE ]] && err_msg "missing LXC_SUITE" && exit 42
+ [[ -z $LXC_SUITE ]] && err_msg "missing LXC_SUITE" && exit 42
fi
case $1 in