Skip to content

Commit

Permalink
no need to remove first character from version number as we're now us…
Browse files Browse the repository at this point in the history
…ing frozen versions
  • Loading branch information
akash1810 committed Jan 22, 2021
1 parent e0da9a7 commit 3ede7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/check-aws-cdk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TOTAL_VERSIONS=$(echo "$VERSIONS" | jq '. | length')

INSTALLED_VERSION_NUMBER=$(jq -r ".dependencies.\"${LIBRARY_TO_CHECK}\"" < "$DIR/../package.json")

INSTALLED_VERSION_POSITION=$(echo "$VERSIONS" | jq ". | index(\"${INSTALLED_VERSION_NUMBER:1}\")") # :1 to remove the first character (~)
INSTALLED_VERSION_POSITION=$(echo "$VERSIONS" | jq ". | index(\"${INSTALLED_VERSION_NUMBER}\")")

DIFFERENCE=$((TOTAL_VERSIONS - INSTALLED_VERSION_POSITION))

Expand Down

0 comments on commit 3ede7cb

Please sign in to comment.