Add missing exit statement for missing sudo privilege
This commit is contained in:
parent
02d7eb223c
commit
605fb2cec3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user