Must

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_must

Purpose

Execute a command or terminate the current script on failure.

Arguments

  • $@ — Command and arguments.

Side effects

Calls sgnd_die when the command fails.

Returns

  • 0 on success; otherwise exits with the command status.

Usage

  sgnd_must mkdir -p "/tmp/sgnd-example"