| #!/system/bin/sh |
| # Copyright 2022 Go Authors All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| |
| |
| # Executes command with the Termux environment. |
| |
| export PREFIX='/data/data/com.termux/files/usr' |
| export HOME='/data/data/com.termux/files/home' |
| export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib' |
| export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH" |
| export TMPDIR=$HOME/tmpdir |
| |
| cd $HOME |
| |
| exec "$@" |