Skip to content

Commit a682e35

Browse files
committed
fix deploy script does not work when skipping wasm build
1 parent bc937eb commit a682e35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

playground/deploy.bash

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ files=(
3131
)
3232

3333
if [[ "$SKIP_BUILD_WASM" != "" ]]; then
34-
files=("${files[@]/main.wasm}")
34+
# Remove main.wasm from $files
35+
for i in "${!files[@]}"; do
36+
if [[ "${files[i]}" == "main.wasm" ]]; then
37+
unset 'files[i]'
38+
break
39+
fi
40+
done
3541
fi
3642

3743
echo "Copying built assets from ./playground to ./playground-dist: " "${files[@]}"

0 commit comments

Comments
 (0)