mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-22 08:15:13 +00:00
Add root check
This commit is contained in:
parent
b3ce2e8880
commit
94d7b957a8
@ -4,6 +4,11 @@
|
||||
# curl -sS "https://m2.nz/setup.sh" | bash
|
||||
# rm -fr ~/.ssh/authorized_keys
|
||||
|
||||
# Root check
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Clean up if needed
|
||||
if [[ "$1" == "uninstall" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user