Skip to content
Snippets Groups Projects
Unverified Commit 93b600a9 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

Merge pull request #3301 from grische/read-feeds-dynamically-update-modules

scripts: update-modules: read feeds from modules
parents f7d41c50 2c9d982e
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,11 @@ git diff --quiet ./modules || {
LOCAL_BRANCH=$(git branch --show-current)
[[ $LOCAL_BRANCH != *-updates ]] && LOCAL_BRANCH+=-updates
for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON"; do
for MODULE in "OPENWRT" ${GLUON_FEEDS}; do
if [[ $MODULE != "OPENWRT" ]]; then
MODULE=PACKAGES_${MODULE^^}
fi
_REMOTE_URL=${MODULE}_REPO
_REMOTE_BRANCH=${MODULE}_BRANCH
_LOCAL_HEAD=${MODULE}_COMMIT
......@@ -48,7 +52,7 @@ for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON";
# prepare the commit message
# shellcheck disable=SC2001
MODULE=$(echo ${MODULE,,} | sed 's/packages_//')
MODULE=$(echo "${MODULE,,}" | sed 's/packages_//')
TITLE="modules: update ${MODULE}"
MESSAGE="$(mktemp)"
{
......@@ -66,4 +70,3 @@ for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON";
# remove the checkout
rm -fr "${CHECKOUT}"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment