moved removing versions.json from build.sh to misc.c
This commit is contained in:
parent
ac4448bb38
commit
d3a03a08b2
3
build.sh
3
build.sh
@ -2,9 +2,8 @@
|
||||
|
||||
####################
|
||||
|
||||
# Remove previous output & versions.json
|
||||
# Remove previous output
|
||||
rm -rf out/*
|
||||
rm -f versions.json
|
||||
|
||||
# Variables
|
||||
files="
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user