Skip to main content

โš™๏ธ Environment Changes

These tools let you tweak the environment, like adding or changing binaries.


importโ€‹

Sources the specified file into the current script.

ArgumentDescription
FILEScript path
ARGSOptional arguments
import "/sdcard/set_my_func.sh"
my_func

import_binโ€‹

Supports: _addon _zip

Imports a binary into the execution environment.

ArgumentDescription
FILEBinary file path
import_bin "/sdcard/my_binary"
my_binary --version

change_binโ€‹

Changes the active binary to an alternative version.

ArgumentDescription
NAMEBinary name (multiple allowed)
-while (-w) OPTEnsure support for this option
change_bin "chmod"  # Switches to another chmod version

start_tmp / end_tmpโ€‹

Creates (start_tmp) or removes (end_tmp) a temporary directory stored in $TMP2.

start_tmp
ui_print "Temp path: $TMP2"
end_tmp