diff --git a/quick-installer.sh b/quick-installer.sh index 3a01a1a..0d9803b 100755 --- a/quick-installer.sh +++ b/quick-installer.sh @@ -50,7 +50,9 @@ set_creator_ssh_keys() { chmod 600 /home/creator/.ssh/authorized_keys } -check_privilege +if ! check_privilege; then + echo ">>> Error: Please run as root" >&2 +fi check_sudo_installation