From 605fb2cec3867aa4eeeb814fcdbd432f2bff0712 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 12 Jun 2022 21:09:37 +0200 Subject: [PATCH] Add missing exit statement for missing sudo privilege --- quick-installer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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