mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-19 04:22:22 +01:00
Merge pull request #1 from t-nelis/root-check
Improve "running as root" check
This commit is contained in:
commit
5c14384e15
@ -256,7 +256,7 @@ fi
|
||||
|
||||
|
||||
/bin/echo
|
||||
if [ "$USER" != root ]; then
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
/bin/echo "Note that you should launch this script with root privileges to get accurate information"
|
||||
/bin/echo "You can try the following command: sudo $0"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user