We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e0fb9 commit d4b5920Copy full SHA for d4b5920
lab2/validate.sh
@@ -1,5 +1,13 @@
1
#!/bin/bash
2
3
+# Check for unwanted files
4
+for file in *; do
5
+ if [[ $file != "main.js" && $file != "main_test.js" && $file != "README.md" && $file != "validate.sh" ]]; then
6
+ echo "[!] Unwanted file detected: $file."
7
+ exit 1
8
+ fi
9
+done
10
+
11
node=$(which node)
12
test_path="${BASH_SOURCE[0]}"
13
solution_path="$(realpath .)"
0 commit comments