Bash - Dependency

> Procedural Languages > Bash Shell and (Unix|Linux) Utilities (XCU)

1 - About

dependency management in Bash

2 - Management

2.1 - Check if a script or utility is installed

Example:

command -v foo >/dev/null 2>&1 || { echo "I require foo but it's not installed.  Aborting." >&2; exit 1; }
Advertising

3 - Documentation / Reference