mirror of
https://github.com/cryinkfly/Autodesk-Fusion-360-for-Linux.git
synced 2025-10-26 07:56:10 +01:00
Change invocation of mokutil to return 0 on success
Some versions of mokutil have an exit code of -1 when invoked without arguments, which causes the check for mokutil to fail and subsequent re-installation of required tools, regardless of whether they are already installed or not. Invoking mokutil with --version also results in an exit code of -1. This seems to have been fixed in (at least) mokutil 0.7.0.
This commit is contained in:
@@ -143,7 +143,7 @@ check_required_packages() {
|
||||
;;
|
||||
|
||||
mokutil)
|
||||
if ! mokutil &>/dev/null; then
|
||||
if ! mokutil --list-enrolled &>/dev/null; then
|
||||
echo -e "${RED}The required command (${cmd}) is not available!${NOCOLOR}"
|
||||
MISSING_COMMANDS+=("$cmd")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user