From 80b50173082586c599d8bb67be02061f6df59a37 Mon Sep 17 00:00:00 2001 From: sanjay7178 Date: Sat, 1 Jun 2024 11:18:05 +0530 Subject: [PATCH] chore: Update build script to create necessary directories and files --- build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 172ad52..9e671bd 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,15 @@ #!/bin/bash cp ./configs/env-template.txt .env cp ./configs/config-demo.json config.json - +if [ ! -d ./var ]; then + mkdir -p ./var +fi +if [ ! -d ./var/job-archive ]; then + mkdir -p ./var/job-archive +fi +if [ ! -f ./var/job-archive/version.txt ]; then + cat 1 > ./var/job-archive/version.txt +fi TARGET="./cc-backend" VAR="./var" CFG="config.json .env"