Skip to content

Commit bb2f604

Browse files
authored
Merge pull request #512 from stepchowfun/restorecon-output
Fix some output redirection in the installation script
2 parents 37921a7 + ef7bc6e commit bb2f604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575

7676
# If SELinux is installed, apply the default security context to the binary.
7777
# shellcheck disable=SC2024
78-
if command -v restorecon 2> /dev/null; then
79-
restorecon "$DESTINATION" 2> /dev/null ||
78+
if command -v restorecon > /dev/null 2>&1; then
79+
restorecon "$DESTINATION" > /dev/null 2>&1 ||
8080
sudo restorecon "$DESTINATION" < /dev/tty ||
8181
fail 'Failed to set SELinux attributes on the binary.'
8282
fi

0 commit comments

Comments
 (0)