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.
This commit is contained in:
Ratatoskr 2024-02-13 09:51:25 +01:00
parent b67b4a657b
commit fd6dd6f9bf
Signed by: Ratatoskr
GPG Key ID: 28B77439A6D78F4E

View File

@ -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() {