Check whether a command is available on PATH.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_have

Purpose

Check whether a command is available on PATH.

Arguments

  • $1 — Command name.

Returns

  • 0 if the command is found; nonzero otherwise.

Usage

  sgnd_have bash