-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilecheck.sh
More file actions
executable file
·66 lines (65 loc) · 1.91 KB
/
filecheck.sh
File metadata and controls
executable file
·66 lines (65 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#/usr/bin/bash
# Make sure input is a .tar file
if [[ $1 != *.tar ]]
then
echo "Input must be a single .tar file"
exit 1
fi
# eXtract Ze Files
tar -xzf $1
# Make sure KEY.txt was in the tarball
if [ ! -f KEY.txt ]
then
echo "No file name KEY.txt found"
echo "Either Answer Key does not exist or is incorrectly named"
exit 1
fi
# Make sure key_formatter.py exists
if [ ! -f key_formatter.py ]
then
echo "key_formatter.py not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi
# Make sure student_answer_formatter.py exists
if [ ! -f student_answer_formatter.py ]
then
echo "student_answer_formatter.py not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi
# Make sure grader.cpp exists
if [ ! -f grader.cpp ]
then
echo "grader.cpp not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi
# Make sure grader.h exists
if [ ! -f grader.h ]
then
echo "grader.h not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi
# Make sure highlight.sh exists
if [ ! -f highlight.sh ]
then
echo "highlight.sh not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi
# Make sure rankings_formatter.sh exists
if [ ! -f rankings_formatter.sh ]
then
echo "rankings_formatter.sh not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi
# Make sure student_score_formatter.sh exists
if [ ! -f student_score_formatter.sh ]
then
echo "student_score_formatter.sh not found"
echo "Get a correct copy of CodeBustersGrader at https://github.com/oliversno/CodeBustersGrader"
exit 1
fi