asd/general-scripts/failout.sh

11 lines
196 B
Bash
Raw Normal View History

2025-08-15 08:54:26 +10:00
#!/bin/bash
## A helper script that exports a function in asd
## Scripts run by asd can then use failout
## Saves definining it for every script.
failout() {
[ -z $MSG ] || echo $MSG
exit 1
}