Container: Portable scripts

This allows bash to be found if not located in /bin.
This commit is contained in:
ryneeverett 2024-07-26 16:51:10 -04:00 committed by SkewedZeppelin
parent 4d22f558ba
commit 41bc2deded
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# from https://android.googlesource.com/platform/build/+/master/tools/docker
# Copy your host gitconfig, or create a stripped down version

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# from https://android.googlesource.com/platform/build/+/master/tools/docker
# Copy your host gitconfig, or create a stripped down version

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
mkdir -p $1 $2
docker run -it --rm -v $1:/home/$(id -un)/android -v $2:/home/$(id -un)/.ccache android-build-fedora

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
mkdir -p $1 $2
podman run -it --rm --user=$(id -un) --workdir="/home/$(id -un)" --entrypoint="/bin/bash" -v $1:/home/$(id -un)/android -v $2:/home/$(id -un)/.ccache android-build-fedora