Skip to content

Commit d30f3be

Browse files
committed
Fix shellcheck findings in the wasm-without-nix build script
Use find instead of an unquoted ls glob to pick the first extracted object in verify_wasm (SC2012, SC2035).
1 parent b29e79d commit d30f3be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/wasm-without-nix/build-wasm-libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ verify_wasm() {
249249
local tmp
250250
tmp="$(mktemp -d)"
251251
( cd "$tmp" && ar x "$archive" && \
252-
first_obj="$(ls *.o 2>/dev/null | head -1)" && \
252+
first_obj="$(find . -maxdepth 1 -name '*.o' -print -quit)" && \
253253
[ -n "$first_obj" ] && file "$first_obj" | grep -q WebAssembly )
254254
local rc=$?
255255
rm -rf "$tmp"

0 commit comments

Comments
 (0)