setup: write installer URL to tmpfile (#27426)

* setup: write installer URL to tmpfile

* missed ptr type
This commit is contained in:
Cameron Clough
2023-02-22 17:26:37 -08:00
committed by GitHub
parent b00eb57bb7
commit 90db46e775
+5
View File
@@ -59,6 +59,11 @@ void Setup::download(QString url) {
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &res_status);
if (ret == CURLE_OK && res_status == 200 && is_elf(tmpfile)) {
rename(tmpfile, "/tmp/installer");
FILE *fp_url = fopen("/tmp/installer_url", "w");
fprintf(fp_url, "%s", url.toStdString().c_str());
fclose(fp_url);
emit finished(true);
} else {
emit finished(false);