Add missing exit statement for missing sudo privilege

This commit is contained in:
Tanguy Herbron 2022-06-12 21:09:37 +02:00
parent 02d7eb223c
commit 605fb2cec3

View File

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