Skip to content

Commit fa82f18

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

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
@@ -30,8 +30,8 @@ if [ "${NETBOX_DOCKER_VERSION}" == 'auto' ]; then
3030
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}-\")) and (.name | index(\"ldap\") | not)) | .name" |
34-
cut -d "-" -f 2)
33+
jq -r ".results[] | select((.name | startswith(\"v${NETBOX_VERSION}-\")) and (.name | index(\"ldap\") | not)) | .name")
34+
NETBOX_DOCKER_VERSION=${NETBOX_DOCKER_VERSION##*-}
3535
done
3636

3737
unset NEXT

0 commit comments

Comments
 (0)