pkgsrc/mk/scripts/fail
rillig b51c2d32b3 Added the FAIL command, which can be prepended to an arbitrary shell
command, making it return with a non-zero exit status.

The first use of it is in a command called FAIL_MSG, which prints an
error message and exits immediately. ERROR_MSG itself doesn't do that.
2007-01-06 19:53:01 +00:00

5 lines
79 B
Bash

#! /bin/sh
# $NetBSD: fail,v 1.1 2007/01/06 19:53:01 rillig Exp $
"$@"
exit 1