openssl_proot.sh 489 B

123456789
  1. #!/bin/bash
  2. # openssl_proot.sh <args> - openssl from the Debian 12 rootfs (tools/distro_rootfs.sh) for hosts without one, in the
  3. # current directory: OPENSSL=$PWD/openssl_proot.sh fake_github.py ...
  4. ROOTFS=${ROOTFS:-$HOME/.local/share/distro-rootfs/debian-12}
  5. here=$(cd "$(dirname "$0")/.." && pwd)
  6. cwd=$PWD
  7. quoted=$(printf '%q ' "$@")
  8. PROOT=${PROOT:-$HOME/.local/share/arch-proot/proot} BINDS="-b $cwd:$cwd" \
  9. "$here/distro_rootfs.sh" run "$ROOTFS" sh -c "cd $cwd && openssl $quoted"