Skip to content

Commit 024b426

Browse files
committed
feat: reemove aggressive check in validate.sh
1 parent 7654a87 commit 024b426

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

Lab6/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: all run run1 run2 clean
22

33
all:
4-
@gcc -o chal -no-pie -s chal.c
4+
@gcc -o chal -no-pie chal.c
55

66
run: run1 run2
77

Lab6/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You will get 0 points if
4040
## Submission
4141

4242
You need to commit and push the following files to your repository:
43-
1. Your `solve.py` script.
43+
1. Your `solve.py` script (or any other scripts you use).
4444
2. The generated `1.txt` and `2.txt` files.
4545
3. Your final report, `{student_id}_solution.pdf`.
4646

Lab6/chal

2.02 KB
Binary file not shown.

Lab6/validate.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/bin/bash
22

3-
# Check for unwanted files
4-
for file in *; do
5-
if [[ $file != "venv" && $file != "solve.py" && $file != "chal" && $file != "chal.c" && $file != "Makefile" && $file != "README.md" && $file != "validate.sh" && $file != "ans" && $file != "1.txt" && $file != "2.txt" ]]; then
6-
echo "[!] Unwanted file detected: $file."
7-
exit 1
8-
fi
9-
done
10-
113
test_path="${BASH_SOURCE[0]}"
124
solution_path="$(realpath .)"
135
tmp_dir=$(mktemp -d -t lab6-XXXXXXXXXX)

0 commit comments

Comments
 (0)