Skip to content

Commit

Permalink
chore: add update.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Gehrsitz <[email protected]>
  • Loading branch information
mryel00 committed Nov 22, 2023
1 parent d6ddf70 commit 48fa948
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions tools/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env bash

#### crowsnest - A webcam Service for multiple Cams and Stream Services.
####
#### Written by Stephan Wendel aka KwadFan <[email protected]>
#### Copyright 2021 - till today
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####

# shellcheck enable=require-variable-braces

### Disable SC2317 due Trap usage
# shellcheck disable=SC2317

# Exit on errors
set -Ee

# Debug
# set -x

pull_apps() {
printf "Pulling streamer repos ...\n"
for path in "${ALL_PATHS[@]}"; do
if [[ -d "${path}" ]]; then
printf "Pull '%s' ... \n" "${path##*/}"
pushd "${path}" &> /dev/null || exit 1
git pull
popd &> /dev/null || exit 1
printf "Pull '%s' ... [SUCCESS]\n" "${path##*/}"
fi
done
printf "Pulling streamer repos ... [SUCCESS]\n"
}

main() {
. "${SRC_DIR}/bin/build.sh"

pull_apps
}

main "${@}"
exit 0

0 comments on commit 48fa948

Please sign in to comment.