Add root check

This commit is contained in:
idanoo 2022-10-12 09:21:17 +13:00
parent b3ce2e8880
commit 94d7b957a8
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -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