mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 08:00:41 +00:00
trivial: Do not show a critical warning if no firmware is specified
This commit is contained in:
parent
90da72ad76
commit
c5eb83cb87
@ -318,7 +318,13 @@ main (int argc, char *argv[])
|
||||
if (apply != NULL) {
|
||||
g_autoptr(FuUefiDevice) dev = fu_uefi_device_new_from_guid (apply);
|
||||
g_autoptr(GError) error_local = NULL;
|
||||
g_autoptr(GBytes) fw = fu_common_get_contents_bytes (argv[1], &error_local);
|
||||
g_autoptr(GBytes) fw = NULL;
|
||||
|
||||
if (argv[1] == NULL) {
|
||||
g_printerr ("capsule filename required\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
fw = fu_common_get_contents_bytes (argv[1], &error_local);
|
||||
if (fw == NULL) {
|
||||
g_printerr ("failed: %s\n", error_local->message);
|
||||
return EXIT_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user