Update dir for json creation

This commit is contained in:
Logan Cusano
2025-06-29 02:04:53 -04:00
parent ffb3e1b57f
commit 061f27c17e

View File

@@ -53,13 +53,13 @@ create_config_json() {
}'
# Create data folder if it doesn't exist
mkdir -p ./data
mkdir -p $(pwd)/data
# 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
if [ -f "config.json" ]; then
if [ -f "$(pwd)/config.json" ]; then
echo -e "${GREEN}Successfully created 'config.json'.${NC}"
echo -e "${GREEN}Content of config.json:${NC}"
cat config.json