diff --git a/src/main.cpp b/src/main.cpp index 49c75b1..dd3fd7a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -172,6 +172,10 @@ int main(int argc, char *argv[]) const string now = strtime(system_clock::now()); stringstream data(get_http(baseurl + "/api/v1/repos/" + repo + "/releases")); + if (cgi) + { + cout << endl; + } if (data.str().empty()) { cerr << "Error: Could not download releases.\n"; @@ -179,10 +183,6 @@ int main(int argc, char *argv[]) } Json::Value json; data >> json; - if (cgi) - { - cout << endl; - } cout << "\n"