diff --git a/build.sh b/build.sh index 58891a0..d8fd486 100644 --- a/build.sh +++ b/build.sh @@ -2,9 +2,8 @@ #################### -# Remove previous output & versions.json +# Remove previous output rm -rf out/* -rm -f versions.json # Variables files=" diff --git a/src/misc.c b/src/misc.c index bb01bba..283f430 100644 --- a/src/misc.c +++ b/src/misc.c @@ -11,6 +11,12 @@ void checkVersion() { + //REMOVE versions.json + if (access(VERSIONS_NAME, F_OK) == 0) + { + remove(VERSIONS_NAME); + } + //CURL VARIABLES CURL *curl = curl_easy_init(); FILE *fileBuffer = fopen(VERSIONS_NAME, "w");