diff --git a/rewriter/build.sh b/rewriter/build.sh index 825bd40..9554e65 100755 --- a/rewriter/build.sh +++ b/rewriter/build.sh @@ -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