โ๏ธ Environment Changes
These tools let you tweak the environment, like adding or changing binaries.
importโ
Sources the specified file into the current script.
Argument | Description |
---|---|
FILE | Script path |
ARGS | Optional arguments |
import "/sdcard/set_my_func.sh"
my_func
import_binโ
Imports a binary into the execution environment.
Argument | Description |
---|---|
FILE | Binary file path |
import_bin "/sdcard/my_binary"
my_binary --version
change_binโ
Changes the active binary to an alternative version.
Argument | Description |
---|---|
NAME | Binary name (multiple allowed) |
-while (-w) OPT | Ensure 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