golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/corellium/android/files/exec.sh (about)

     1  #!/system/bin/sh
     2  # Copyright 2022 The Go Authors. All rights reserved.
     3  # Use of this source code is governed by a BSD-style
     4  # license that can be found in the LICENSE file.
     5  
     6  
     7  # Executes command with the Termux environment.
     8  
     9  export PREFIX='/data/data/com.termux/files/usr'
    10  export HOME='/data/data/com.termux/files/home'
    11  export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib'
    12  export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH"
    13  export TMPDIR=$HOME/tmpdir
    14  
    15  cd $HOME
    16  
    17  exec "$@"