File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ function check_release_version() {
19
19
20
20
# Retrieve the latest released version
21
21
latest_version_short=$( jq --raw-output " .latestRelease" " $LIST_FILE " )
22
- latest_version_long =$( jq --raw-output " .releases | .[\" ${latest_version_short} \" ]" " $LIST_FILE " | sed --regexp-extended --quiet ' s/^soljson-v(.*).js$/\1/p ' )
22
+ latest_release_path =$( jq --raw-output " .releases | .[\" ${latest_version_short} \" ]" " $LIST_FILE " )
23
23
24
24
# Check if current version is the latest release
25
- if [[ $ current_version != " $latest_version_long " ]]; then
25
+ if [[ " soljson-v ${ current_version} .js " != " $latest_release_path " ]]; then
26
26
fail " Version is not the latest release:\n [current]: ${current_version} \n [latest]: ${latest_version_short} "
27
27
fi
28
28
29
29
current_sha=$( shasum --binary --algorithm 256 ./soljson.js | awk ' { print $1 }' )
30
- release_sha=$( jq --raw-output " .builds[] | select(.longVersion == \" ${latest_version_long } \" ) | .sha256" " $LIST_FILE " | sed ' s/^0x//' )
30
+ release_sha=$( jq --raw-output " .builds[] | select(.path == \" ${latest_release_path } \" ) | .sha256" " $LIST_FILE " | sed ' s/^0x//' )
31
31
32
32
# Check if sha matches
33
33
if [[ $current_sha != " $release_sha " ]]; then
You can’t perform that action at this time.
0 commit comments