Skip to content

Commit 617efa8

Browse files
committed
Fix shellcheck complaints
Signed-off-by: Ionut Mihalcea <[email protected]>
1 parent 2440902 commit 617efa8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cryptoki-sys/regenerate_bindings.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ for target in $targets; do
1212

1313
# Check if the target is already installed
1414
if ! rustup target list | grep -q "$target (installed)"; then
15-
rustup target install $target
15+
rustup target install "$target"
1616
TARGET_INSTALLED="$target"
1717
fi
1818

19-
cargo build --target $target --features generate-bindings
20-
find ../target/$target/ -name pkcs11_bindings.rs | xargs -I '{}' cp '{}' src/bindings/$target.rs
19+
cargo build --target "$target" --features generate-bindings
20+
find ../target/"$target"/ -print0 -name "pkcs11_bindings.rs" | xargs -I '{}' cp '{}' src/bindings/"$target".rs
2121

2222
if [ "$TARGET_INSTALLED" == "$target" ]; then
23-
rustup target remove $target
23+
rustup target remove "$target"
2424
fi
2525
done

0 commit comments

Comments
 (0)