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