Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

release.yml: explicit if for the wasm-bindgen install (shellcheck SC2015)

Brandon Thomasc60d3f9c4c4b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0cfad532a..59e6d7d19 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -221,8 +221,9 @@ jobs:
- name: Install wasm-bindgen CLI
run: |
# Must match the wasm-bindgen crate version exactly (WASM_BINDGEN in xtask/src/main.rs).
- command -v wasm-bindgen >/dev/null && wasm-bindgen --version | grep -q "$WASM_BINDGEN_VERSION" \
- || cargo install wasm-bindgen-cli --version "$WASM_BINDGEN_VERSION" --locked
+ if ! { command -v wasm-bindgen >/dev/null && wasm-bindgen --version | grep -q "$WASM_BINDGEN_VERSION"; }; then
+ cargo install wasm-bindgen-cli --version "$WASM_BINDGEN_VERSION" --locked
+ fi
wasm-bindgen --version
- name: Apply version override
if: inputs.version != ''