Fix typos
This commit is contained in:
@@ -23,12 +23,12 @@ create_config_json() {
|
||||
echo "$config_content" > ./data/config.json
|
||||
|
||||
# Check if the file was successfully created
|
||||
if [ -f "config.json" ]; then
|
||||
echo "Successfully created 'config.json'."
|
||||
if [ -f "./data/config.json" ]; then
|
||||
echo "Successfully created './data/config.json'."
|
||||
echo "Content of config.json:"
|
||||
cat config.json
|
||||
cat ./data/config.json
|
||||
else
|
||||
echo "Error: Failed to create 'config.json'."
|
||||
echo "Error: Failed to create './data/config.json'."
|
||||
exit 1 # Exit with an error code if file creation fails
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user