Skip to content

Commit

Permalink
Fix shellcheck complaints
Browse files Browse the repository at this point in the history
Signed-off-by: Ionut Mihalcea <[email protected]>
  • Loading branch information
ionut-arm committed May 16, 2022
1 parent 2440902 commit 617efa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cryptoki-sys/regenerate_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ for target in $targets; do

# Check if the target is already installed
if ! rustup target list | grep -q "$target (installed)"; then
rustup target install $target
rustup target install "$target"
TARGET_INSTALLED="$target"
fi

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

if [ "$TARGET_INSTALLED" == "$target" ]; then
rustup target remove $target
rustup target remove "$target"
fi
done

0 comments on commit 617efa8

Please sign in to comment.