Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lynis
diff options
context:
space:
mode:
authortheycallhimpat <reillypk@gmail.com>2018-12-17 11:54:44 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-12-17 11:54:44 +0300
commitd024d5296ea9dbc3b58b6569d4fcc341ab517a75 (patch)
tree807976ba2996ffb87046d5221526419fd442e277 /lynis
parent0f32d2725c3a657d02e186e6ca647c21510b21dc (diff)
Fix error printed to screen when run from shell without "command" (#601)
Issue is present on busybox ash shell without "command" builtin. Fix issue by redirecting errors to /dev/null
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis2
1 files changed, 1 insertions, 1 deletions
diff --git a/lynis b/lynis
index b1e6570e..074aba55 100755
--- a/lynis
+++ b/lynis
@@ -110,7 +110,7 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
fi
# Auto detection of language based on locale (first two characters). Set to English when nothing found.
- if [ -x "$(command -v locale)" ]; then
+ if [ -x "$(command -v locale 2> /dev/null)" ]; then
LANGUAGE=$(locale | egrep "^LANG=" | cut -d= -f2 | cut -d_ -f1 | egrep "^[a-z]{2}$")
fi
if [ -z "${LANGUAGE}" ]; then