From fd6dd6f9bf235ed7079474739ab6ade36bfa158d Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Tue, 13 Feb 2024 09:51:25 +0100 Subject: [PATCH] Refactor generate_text.sh script This commit includes changes to the 'generate_text.sh' script: - Updated the 'rm' command to recursively remove files in the text directory using 'rm -rf'. - Improved comments and formatting in the script. The changes aim to enhance the script by ensuring a more thorough removal of files in the text directory and improving overall script readability. --- generate_text.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_text.sh b/generate_text.sh index e64d403..3f71a29 100755 --- a/generate_text.sh +++ b/generate_text.sh @@ -14,7 +14,7 @@ html_file="$text_dir/handout.html" all=("date" "time" "weather") # Add more elements as needed # remove files in text_dir -rm -f $text_dir/* +rm -rf $text_dir/* # Function to get the IP address of Lisa's iPhone check_ip() {