Use EUID to check root

This commit is contained in:
ValdikSS
2015-11-15 13:34:19 +03:00
父節點 d32416561b
當前提交 2574097eb4

查看文件

@@ -8,7 +8,7 @@
# universal as possible.
if [[ "$USER" != 'root' ]]; then
if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root"
exit
fi