Skip to content

Commit 8f987f6

Browse files
committed
fix: hardcode path and message to fix log
Signed-off-by: Patrick Gehrsitz <[email protected]>
1 parent 48047b0 commit 8f987f6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

libs/core.sh

+5-8
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,15 @@ function check_dep {
8282

8383
function check_apps {
8484
local cstreamer ustreamer
85-
ustreamer_base="bin/ustreamer"
86-
ustreamer="$(find "${BASE_CN_PATH}"/"${ustreamer_base}" \
87-
-iname 'ustreamer.bin' 2> /dev/null | sed '1q')"
85+
ustreamer="bin/ustreamer/src/ustreamer.bin"
8886
cstreamer="bin/camera-streamer/camera-streamer"
89-
90-
if [[ -x "${ustreamer}" ]]; then
91-
log_msg "Dependency: '${ustreamer##*/}' found in ${ustreamer_base}/${ustreamer##*/}."
92-
UST_BIN="${ustreamer}"
87+
if [[ -x "${BASE_CN_PATH}/${ustreamer}" ]]; then
88+
log_msg "Dependency: 'ustreamer' found in ${ustreamer}."
89+
UST_BIN="${BASE_CN_PATH}/${ustreamer}"
9390
# shellcheck disable=SC2034
9491
declare -r UST_BIN
9592
else
96-
log_msg "Dependency: '$(dirname ustreamer_base)' not found. Exiting!"
93+
log_msg "Dependency: 'ustreamer' not found. Exiting!"
9794
exit 1
9895
fi
9996

0 commit comments

Comments
 (0)