mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-24 12:40:25 +00:00
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
|
|
}
|