From 27c67a3f829f66dc664b924760ffd9e88d945e5b Mon Sep 17 00:00:00 2001 From: Stephan Boyer Date: Sun, 6 Jul 2025 02:34:20 -0600 Subject: [PATCH] Fix some output redirection in the installation script --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 5fb2614..11fef20 100755 --- a/install.sh +++ b/install.sh @@ -75,8 +75,8 @@ # If SELinux is installed, apply the default security context to the binary. # shellcheck disable=SC2024 - if command -v restorecon 2> /dev/null; then - restorecon "$DESTINATION" 2> /dev/null || + if command -v restorecon > /dev/null 2>&1; then + restorecon "$DESTINATION" > /dev/null 2>&1 || sudo restorecon "$DESTINATION" < /dev/tty || fail 'Failed to set SELinux attributes on the binary.' fi