Skip to content

Commit

Permalink
fix wasm-bindgen version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 8, 2024
1 parent 0284838 commit 0f3b409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rewriter/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ which cargo wasm-bindgen wasm-opt &> /dev/null || {
}

WBG="wasm-bindgen 0.2.95"
if [ "$(wasm-bindgen -V)" != "$WBG" ]; then
if ! [[ "$(wasm-bindgen -V)" =~ ^"$WBG" ]]; then
echo "Incorrect wasm-bindgen-cli version: '$(wasm-bindgen -V)' != '$WBG'"
exit 1
fi
Expand Down

0 comments on commit 0f3b409

Please sign in to comment.