diff --git a/ci/run.bash b/ci/run.bash index 0035026c7d..f2d032491d 100644 --- a/ci/run.bash +++ b/ci/run.bash @@ -8,9 +8,8 @@ rustc -vV cargo -vV if [ -n "$INSTALL_BINDGEN" ]; then - (curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh \ - && mv "$HOME"/.cargo/bin/bindgen /usr/bin) \ - || cargo install --force --locked bindgen-cli --root=/usr/bin + curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/latest/download/bindgen-cli-installer.sh | sh -s -- --no-modify-path \ + || cargo install --force --locked bindgen-cli fi