From 766c90a5ba24d716cbd0e974a137b2f7c8e440c4 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 22 Jan 2025 15:42:46 +0100 Subject: [PATCH] refactor: fix SELinux check to verify directory existence instead of file --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 3fa6816..21f2a3a 100755 --- a/setup.sh +++ b/setup.sh @@ -240,7 +240,7 @@ warning_prompt() { check_selinux() { # Check if distro has SELinux at all: - if [ ! -f /etc/selinux ]; then + if [ ! -d /etc/selinux ]; then log_success "SELinux not found. Skipping..." return 0 fi