From d6ddf7074d4a96c988d088be97273ce1978614e0 Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:05:57 +0100 Subject: [PATCH] chore: add streamer repos update Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> --- Makefile | 1 + bin/build.sh | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f77669c1..03cb0de9 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ help: ## Shows this help update: ## Update crowsnest (fetches and pulls repository changes) @git fetch && git pull + bash -c 'tools/update.sh' report: ## Generate report.txt @if [ -f ~/report.txt ]; then rm -f ~/report.txt; fi diff --git a/bin/build.sh b/bin/build.sh index b4ee2cc4..14a129ef 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -214,7 +214,10 @@ main() { } #### MAIN -main "${@}" -exit 0 + +if [[ "${BASH_SOURCE[0]}" = "${0}" ]]; then + main "${@}" + exit 0 +fi #### EOF