trivial: fix wget command in fu-tool.c

-o <arg> will redirect stdout to <arg>, -O <arg> what we want to be
using, it saves the file to <arg>.

Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
Filipe Laíns 2019-09-20 10:04:43 +01:00 committed by Richard Hughes
parent 6819f9e461
commit e091427993

View File

@ -671,7 +671,7 @@ fu_util_install_task_sort_cb (gconstpointer a, gconstpointer b)
static gboolean
fu_util_download_out_of_process (const gchar *uri, const gchar *fn, GError **error)
{
const gchar *argv[][5] = { { "wget", uri, "-o", fn, NULL },
const gchar *argv[][5] = { { "wget", uri, "-O", fn, NULL },
{ "curl", uri, "--output", fn, NULL },
{ NULL } };
for (guint i = 0; argv[i][0] != NULL; i++) {