Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loic
hbsd-checksec
Commits
cb87c8d8
Unverified
Commit
cb87c8d8
authored
Jul 08, 2020
by
slimm609
Committed by
GitHub
Jul 08, 2020
Browse files
Merge pull request #159 from irwincong/patch-1
Send warning messages to STDERR
parents
50319879
225cabfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
checksec
View file @
cb87c8d8
...
...
@@ -96,13 +96,13 @@ fi
for
command
in
cat awk sed
sysctl
uname mktemp
openssl
grep stat
file find
sort head
ps
readlink basename id
which xargs
;
do
if
!
(
command_exists
${
command
}
)
;
then
echo
-e
"
\e
[31mWARNING: '
${
command
}
' not found! It's required for most checks.
\e
[0m"
>
&2
echo
-e
"
\e
[31mWARNING: '
${
command
}
' not found! It's required for most checks.
\e
[0m"
commandsmissing
=
true
fi
done
if
[[
${
commandsmissing
}
==
true
]]
;
then
echo
-e
"
\n\e
[31mWARNING: Not all necessary commands found. Some tests might not work!
\e
[0m
\n
"
>
&2
echo
-e
"
\n\e
[31mWARNING: Not all necessary commands found. Some tests might not work!
\e
[0m
\n
"
sleep
2
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment