We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37921a7 + ef7bc6e commit bb2f604Copy full SHA for bb2f604
install.sh
@@ -75,8 +75,8 @@
75
76
# If SELinux is installed, apply the default security context to the binary.
77
# shellcheck disable=SC2024
78
- if command -v restorecon 2> /dev/null; then
79
- restorecon "$DESTINATION" 2> /dev/null ||
+ if command -v restorecon > /dev/null 2>&1; then
+ restorecon "$DESTINATION" > /dev/null 2>&1 ||
80
sudo restorecon "$DESTINATION" < /dev/tty ||
81
fail 'Failed to set SELinux attributes on the binary.'
82
fi
0 commit comments