diff --git a/scripts/update-modules.sh b/scripts/update-modules.sh index 49f87a5060..f16aa38aca 100755 --- a/scripts/update-modules.sh +++ b/scripts/update-modules.sh @@ -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 -