From d3a03a08b25602d4d058da617b0c5da45cfa7e73 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 29 Apr 2022 17:16:32 +0200 Subject: [PATCH] moved removing versions.json from build.sh to misc.c --- build.sh | 3 +-- src/misc.c | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) 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");