works yay
This commit is contained in:
parent
bf21c1b469
commit
363cec25b7
9 changed files with 127 additions and 0 deletions
10
general-scripts/failout.sh
Normal file
10
general-scripts/failout.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue