11 lines
166 B
Bash
11 lines
166 B
Bash
|
# shellcheck shell=bash
|
||
|
termux_error_exit() {
|
||
|
if [ "$#" -eq 0 ]; then
|
||
|
# Read from stdin.
|
||
|
printf '%s\n' "$(cat)" >&2
|
||
|
else
|
||
|
printf '%s\n' "$*" >&2
|
||
|
fi
|
||
|
exit 1
|
||
|
}
|