evenet/lib/core.bash

13 lines
104 B
Bash

has() {
command -v "$1" >/dev/null 2>&1
}
die() {
echo $1 &>2
exit 1
}
warn() {
echo $1 &>2
}