From d1f867e29f5573f66908db593551cced8e075b16 Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Mon, 29 Jul 2024 04:27:29 +0200 Subject: [PATCH] Fix logical error in question prerequisites --- modules/02-system-settings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/02-system-settings.sh b/modules/02-system-settings.sh index 33237d2..41ad78b 100755 --- a/modules/02-system-settings.sh +++ b/modules/02-system-settings.sh @@ -2,7 +2,7 @@ # vi: set ft=zsh tw=80 ts=2 function getQuestionsPrerequisites() { - [[ $(id -un) != root ]] || { lop -- -e 'System settings module requires root access to pose questions. Please run as root.'; return 11 } + [[ $(id -un) == root ]] || { lop -- -e 'System settings module requires root access to pose questions. Please run as root.'; return 11 } } function getExecPrerequisites() {