diff --git a/scripts/before_build.sh b/scripts/before_build.sh index b49d3b8..359d9f8 100755 --- a/scripts/before_build.sh +++ b/scripts/before_build.sh @@ -6,5 +6,4 @@ python3 scripts/mime.py > src/parsing/mime_generated.c python3 scripts/serve_static.py > src/web/static_generated.c python3 scripts/index_static.py > src/index/static_generated.c -printf "static const char *const Sist2CommitHash = \"%s\";\n" $(git rev-parse HEAD) > src/git_hash.h -printf "static const char *const LibScanCommitHash = \"%s\";\n" $(cd third-party/libscan/ && git rev-parse HEAD) >> src/git_hash.h +printf "static const char *const Sist2CommitHash = \"%s\";\n" $(git rev-parse HEAD) > src/git_hash.h \ No newline at end of file diff --git a/src/web/serve.c b/src/web/serve.c index e676430..ca382fd 100644 --- a/src/web/serve.c +++ b/src/web/serve.c @@ -280,7 +280,6 @@ void index_info(struct mg_connection *nc) { cJSON_AddBoolToObject(json, "esVersionLegacy", USE_LEGACY_ES_SETTINGS(WebCtx.es_version)); cJSON_AddStringToObject(json, "platform", QUOTE(SIST_PLATFORM)); cJSON_AddStringToObject(json, "sist2Hash", Sist2CommitHash); - cJSON_AddStringToObject(json, "libscanHash", LibScanCommitHash); cJSON_AddStringToObject(json, "lang", WebCtx.lang); cJSON_AddBoolToObject(json, "dev", WebCtx.dev); #ifdef SIST_DEBUG