forked from mainsail-crew/crowsnest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrick Gehrsitz <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |