-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrequirementsCheck.sh
More file actions
executable file
·52 lines (42 loc) · 1.01 KB
/
requirementsCheck.sh
File metadata and controls
executable file
·52 lines (42 loc) · 1.01 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
#!/bin/bash
checkPassed=true
echo checking node...
if ! node --version > /dev/null 2>&1; then
echo Node.js not detected!
checkPassed=false
fi
echo checking npm...
if ! npm --version > /dev/null 2>&1; then
echo NPM not detected!
checkPassed=false
fi
echo checking python3...
if ! python3 --version > /dev/null 2>&1; then
echo Python not detected!
exit 1
fi
echo checking Ximea driver...
if ! python3 -c "import ximea" > /dev/null 2>&1; then
echo Ximea driver not detected!
checkPassed=false
fi
echo checking opencv-python...
if ! python3 -c "import cv2" > /dev/null 2>&1; then
echo opencv-python not detected!
checkPassed=false
fi
echo checking numpy...
if ! python3 -c "import numpy" > /dev/null 2>&1; then
echo numpy not detected!
checkPassed=false
fi
echo checking imutils...
if ! python3 -c "import imutils" > /dev/null 2>&1; then
echo imutils not detected!
checkPassed=false
fi
if [ "$checkPassed" = true ]; then
echo Everything looks fine!
exit 0
fi
exit 1