Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/actions/toast/node_modules/.bin/uuid 2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
# Remove the temporary directory.
rm -rf "$TEMPDIR"

# 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 ||
sudo restorecon "$DESTINATION" < /dev/tty ||
fail 'Failed to set SELinux attributes on the binary.'
fi

# Let the user know if the installation was successful.
"$DESTINATION" --version || fail 'There was an error installing the binary.'
)