Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down