File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ set -eou pipefail
17
17
TEST_SERVICE_FILE=" /etc/systemd/system/crowsnest.service"
18
18
19
19
20
- is_raspios () {
21
- if [[ -f /etc/rpi-issue ]]; then
22
- echo " 1"
23
- else
24
- echo " 0"
25
- fi
26
- }
27
-
28
20
get_vars () {
29
21
INSTALLED_AS=" $( grep " User" /etc/systemd/system/crowsnest.service | cut -f2 -d= | sed ' s/^ //' | cut -f1 -d' ' ) "
30
22
REPO_PATH=" $( grep " WorkingDirectory" /etc/systemd/system/crowsnest.service | cut -f2 -d= | sed ' s/^ //' | cut -f1 -d' ' ) "
@@ -89,6 +81,8 @@ main() {
89
81
printf " TEST: ustreamer binary build? ..."
90
82
[[ -x " ${REPO_PATH} /bin/ustreamer/ustreamer" ]] && printf " [YES]\n" || printf " [NO]\n"
91
83
84
+ printf " TEST: Import helper functions ..."
85
+ . " ${REPO_PATH} /libs/helper_fn.sh"
92
86
printf " TEST: camera-streamer repo cloned? ..."
93
87
if [[ " $( is_raspios) " = " 1" ]]; then
94
88
[[ -d " ${REPO_PATH} /bin/camera-streamer" ]] && printf " [OK]\n" || printf " [NOT FOUND]\n"
You can’t perform that action at this time.
0 commit comments