Skip to content

Commit 3237c9d

Browse files
committed
Fix errors in "set-versions" script.
1 parent ea10e0c commit 3237c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/set-versions.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ if [ "${NETBOX_DOCKER_VERSION}" == 'auto' ]; then
2727

2828
while [ "${NEXT}" != "null" ] && [ "${NETBOX_DOCKER_VERSION}" == "" ]; do
2929
RESPONSE=$(curl --silent "${NEXT}")
30-
NEXT=$(echo -E "${RESPONSE}" | jq '.next')
30+
NEXT=$(echo -E "${RESPONSE}" | jq -r '.next')
3131

3232
NETBOX_DOCKER_VERSION=$(echo -E "${RESPONSE}" |
33-
jq -r ".results[] | select(.name | startswith(\"v${NETBOX_VERSION}-\")) | .name" |
33+
jq -r ".results[] | select((.name | startswith(\"v${NETBOX_VERSION}-\")) and (.name | index(\"ldap\") | not)) | .name" |
3434
cut -d "-" -f 2)
3535
done
3636

0 commit comments

Comments
 (0)