Skip to content

Commit 222db2f

Browse files
committed
Merge branch 'feature/version_bump_and_workflow_fixes' of github.com:fairagro/m4.2_advanced_middleware_api into feature/version_bump_and_workflow_fixes
2 parents 3b51341 + 2b39632 commit 222db2f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/update-apk-dependencies.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,10 @@ done < <(grep -oE '[a-z0-9][a-z0-9_-]*=[0-9][a-z0-9._]+-r[0-9]+' "$DOCKERFILE" |
8181
echo "🐍 Updating pip-pinned packages..."
8282

8383
while IFS= read -r match; do
84-
[[ "$match" =~ ^([a-zA-Z0-9][a-zA-Z0-9_-]*)==[0-9][a-z0-9._]*$ ]] || continue
84+
[[ "$match" =~ ^([a-zA-Z0-9][a-zA-Z0-9_-]*)==([0-9][a-z0-9._]*)$ ]] || continue
8585

8686
pkg="${BASH_REMATCH[1]}"
87-
current="${BASH_REMATCH[2]:-}"
88-
# extract current from match (everything after ==)
89-
current="${match#*==}"
87+
current="${BASH_REMATCH[2]}"
9088

9189
latest=$(curl -sf "https://pypi.org/pypi/${pkg}/json" | python3 -c "import sys,json; print(json.load(sys.stdin)['info']['version'])" 2>/dev/null || true)
9290

0 commit comments

Comments
 (0)