Files
termux-packages/scripts/updates/utils/termux_error_exit.sh
termux-actions[bot] 5e35090b94 Update repo
2022-03-29 12:36:46 +00:00

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
}