From 0f3b4097df4569fe4718d4efbde2e0b985215536 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:08:07 -0600 Subject: [PATCH] fix wasm-bindgen version check --- rewriter/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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