Skip to content

Commit 2e2db09

Browse files
committed
utils: Pass PATCH_EXT into jq to fix config_update
* Needed when changing repo names Signed-off-by: peternmuller <pm563838@gmail.com>
1 parent 879504f commit 2e2db09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ config_update() {
170170
else
171171
last_patches=$(gh_req "$rv_rel/tags/${ver}" -)
172172
fi
173-
if ! last_patches=$(jq -e -r '.assets[] | select(.name | endswith("$PATCH_EXT")) | .name' <<<"$last_patches"); then
174-
abort oops
173+
if ! last_patches=$(jq -e -r --arg ext "$PATCH_EXT" '.assets[] | select(.name | endswith($ext)) | .name' <<<"$last_patches"); then
174+
abort "oops"
175175
fi
176176
if [ "$last_patches" ]; then
177177
if ! OP=$(grep "^Patches: ${PATCHES_SRC%%/*}/" build.md | grep "$last_patches"); then

0 commit comments

Comments
 (0)