Update dir for json creation
This commit is contained in:
@@ -53,13 +53,13 @@ create_config_json() {
|
|||||||
}'
|
}'
|
||||||
|
|
||||||
# Create data folder if it doesn't exist
|
# Create data folder if it doesn't exist
|
||||||
mkdir -p ./data
|
mkdir -p $(pwd)/data
|
||||||
|
|
||||||
# Write the content to config.json
|
# Write the content to config.json
|
||||||
echo "$config_content" > ./data/config.json
|
echo "$config_content" > $(pwd)/data/config.json
|
||||||
|
|
||||||
# Check if the file was successfully created
|
# Check if the file was successfully created
|
||||||
if [ -f "config.json" ]; then
|
if [ -f "$(pwd)/config.json" ]; then
|
||||||
echo -e "${GREEN}Successfully created 'config.json'.${NC}"
|
echo -e "${GREEN}Successfully created 'config.json'.${NC}"
|
||||||
echo -e "${GREEN}Content of config.json:${NC}"
|
echo -e "${GREEN}Content of config.json:${NC}"
|
||||||
cat config.json
|
cat config.json
|
||||||
|
|||||||
Reference in New Issue
Block a user