blob: eea719f188e4a039065ffd4fa643b35f6ae0ee06 [file] [log] [blame]
#!/system/bin/sh
# Copyright 2022 The 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 "$@"