mirror of
https://onedev.site.tesses.net/Dependencies/AndroidDotnetDocker
synced 2026-02-08 10:05:46 +00:00
Build android dotnet
This commit is contained in:
26
tools/entrypoint.sh
Executable file
26
tools/entrypoint.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
function checkbin() {
|
||||
type -P su-exec
|
||||
}
|
||||
|
||||
function su_mt_user() {
|
||||
su android -c '"$0" "$@"' -- "$@"
|
||||
}
|
||||
|
||||
chown android:android /opt/android-sdk-linux
|
||||
|
||||
printenv
|
||||
|
||||
if checkbin; then
|
||||
exec su-exec android:android /opt/tools/android-sdk-update.sh "$@"
|
||||
else
|
||||
su_mt_user /opt/tools/android-sdk-update.sh ${1}
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user