mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 09:25:38 +00:00
trivial: Only set the profile value after the argv parse
This commit is contained in:
parent
523ed0d7b4
commit
0b937e7a6e
@ -3374,7 +3374,6 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* when not using the engine */
|
/* when not using the engine */
|
||||||
priv->progress = fu_progress_new(G_STRLOC);
|
priv->progress = fu_progress_new(G_STRLOC);
|
||||||
fu_progress_set_profile(priv->progress, g_getenv("FWUPD_VERBOSE") != NULL);
|
|
||||||
g_signal_connect(priv->progress,
|
g_signal_connect(priv->progress,
|
||||||
"percentage-changed",
|
"percentage-changed",
|
||||||
G_CALLBACK(fu_util_progress_percentage_changed_cb),
|
G_CALLBACK(fu_util_progress_percentage_changed_cb),
|
||||||
@ -3702,6 +3701,7 @@ main(int argc, char *argv[])
|
|||||||
g_print("%s: %s\n", _("Failed to parse arguments"), error->message);
|
g_print("%s: %s\n", _("Failed to parse arguments"), error->message);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
fu_progress_set_profile(priv->progress, g_getenv("FWUPD_VERBOSE") != NULL);
|
||||||
|
|
||||||
/* allow disabling SSL strict mode for broken corporate proxies */
|
/* allow disabling SSL strict mode for broken corporate proxies */
|
||||||
if (priv->disable_ssl_strict) {
|
if (priv->disable_ssl_strict) {
|
||||||
|
Loading…
Reference in New Issue
Block a user