entrypoint.sh 305 B

1234567891011121314151617
  1. #!/bin/bash
  2. # A hack for GitHub Actions to not install Rust twice
  3. if [ "$HOME" != "/root" ]; then
  4. ln -sf /root/.rustup "$HOME/.rustup"
  5. ln -sf /root/.cargo "$HOME/.cargo"
  6. fi
  7. PATH="$HOME/.cargo/bin:${PATH}"
  8. if [ -z "$1" ]; then
  9. bash
  10. else
  11. echo "Running $1"
  12. set -ex
  13. bash -c "$1"
  14. fi