asd/general-scripts/failout.sh
2025-08-15 08:54:26 +10:00

10 lines
196 B
Bash

#!/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
}