Skip to content

Commit

Permalink
Merge pull request UofT-DSI#94 from dtxe/main
Browse files Browse the repository at this point in the history
clarify assignment, remove confusing instructions from homework, upda…
  • Loading branch information
dtxe authored Aug 21, 2024
2 parents 4ec2539 + 443985f commit 128fc1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 02_activities/assignments/assignment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions 02_activities/homework/homework.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion 03_instructional_team/autograder/autograder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 128fc1c

Please sign in to comment.