Skip to content
Snippets Groups Projects
Commit 92d4631f authored by Grische's avatar Grische
Browse files

scripts: update-modules: read feeds from modules

parent 10728bc8
Branches
Tags
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
......@@ -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.
Please register or to comment