diff --git a/02_activities/assignments/assignment.sh b/02_activities/assignments/assignment.sh index c0eae8d6..27d7034b 100644 --- a/02_activities/assignments/assignment.sh +++ b/02_activities/assignments/assignment.sh @@ -13,7 +13,7 @@ set -x # 3. Create 5 text files in dir2 named file1, file2, file3, file4, and file5 -# 4. Append the words "Hello world" to file3 +# 4. Append the words "Hello world" to dir2/file3 # 5. Verify that file3 contains the words "hello world" by printing the contents of the file in the terminal diff --git a/02_activities/homework/homework.sh b/02_activities/homework/homework.sh index 04b94726..a4329224 100644 --- a/02_activities/homework/homework.sh +++ b/02_activities/homework/homework.sh @@ -1,9 +1,5 @@ #!/bin/bash -# Instructions: -# Please run the following command in the terminal where homework.sh is located to make the file executable. -# chmod +x ./homework.sh - # On your terminal, input all the commands you have used to create the following: # 1. How would you create 5 directories? Feel free to use any name for your directories. diff --git a/03_instructional_team/autograder/autograder.py b/03_instructional_team/autograder/autograder.py index 0d4d6f57..0d421fcb 100644 --- a/03_instructional_team/autograder/autograder.py +++ b/03_instructional_team/autograder/autograder.py @@ -87,7 +87,7 @@ if os.path.isfile(f'{base_dir}/dir2/file3.txt'): with open(f'{base_dir}/dir2/file3.txt', 'r') as f: file3 = f.read() - if file3.strip().lower() == 'hello world': + if re.sub(r'[^a-z]', '', file3.lower()) == 'helloworld': s.append({'question': 4, 'status': 1}) else: s.append({