diff --git a/dev/alloc-limits-from-test-output b/dev/alloc-limits-from-test-output index 2fa9322ce4..d6718709db 100755 --- a/dev/alloc-limits-from-test-output +++ b/dev/alloc-limits-from-test-output @@ -49,6 +49,12 @@ case "$mode_flag" in ;; esac +# stdin is coming from a terminal, i.e. nothing is being piped in. +if [[ -t 0 ]]; then + usage + exit 1 +fi + function allow_slack() { raw="$1" if [[ ! "$raw" =~ ^[0-9]+$ ]]; then