moved removing versions.json from build.sh to misc.c

This commit is contained in:
Václav Šmejkal 2022-04-29 17:16:32 +02:00
parent ac4448bb38
commit d3a03a08b2
2 changed files with 7 additions and 2 deletions

View File

@ -2,9 +2,8 @@
#################### ####################
# Remove previous output & versions.json # Remove previous output
rm -rf out/* rm -rf out/*
rm -f versions.json
# Variables # Variables
files=" files="

View File

@ -11,6 +11,12 @@
void void
checkVersion() checkVersion()
{ {
//REMOVE versions.json
if (access(VERSIONS_NAME, F_OK) == 0)
{
remove(VERSIONS_NAME);
}
//CURL VARIABLES //CURL VARIABLES
CURL *curl = curl_easy_init(); CURL *curl = curl_easy_init();
FILE *fileBuffer = fopen(VERSIONS_NAME, "w"); FILE *fileBuffer = fopen(VERSIONS_NAME, "w");