Require

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_require

Purpose

Execute a command and report its failure without exiting.

Arguments

  • $@ — Command and arguments.

Side effects

Prints a failure message when the command fails.

Returns

Returns the command exit status.

Usage

  sgnd_require test -d "/tmp"