mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 05:32:35 +00:00
10 lines
163 B
Bash
10 lines
163 B
Bash
# shellcheck shell=bash
|
|
termux_error_exit() {
|
|
if (( $# )); then
|
|
printf 'ERROR: %s\n' "$*"
|
|
else # Read from stdin.
|
|
printf '%s\n' "$(cat -)"
|
|
fi
|
|
exit 1
|
|
} >&2
|