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