Skip to content

Instantly share code, notes, and snippets.

@therealbnut
Created February 28, 2024 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealbnut/b76058074354a0d22a283ba06f5da740 to your computer and use it in GitHub Desktop.
Save therealbnut/b76058074354a0d22a283ba06f5da740 to your computer and use it in GitHub Desktop.
Make a temporary directory for cargo build products
#!/usr/bin/env bash
set -euxo pipefail
main() {
local tmpdir
tmpdir="$(mktemp -d /tmp/cargo-targets/target.XXXXXXXX)"
ln -s "${tmpdir}" target
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment