Files
termux-packages/scripts/build/termux_error_exit.sh
termux-pacman-bot 4e5a19435d Update repo
2025-10-13 00:50:07 +00:00

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