feat: add yell, die, try
This commit is contained in:
parent
fdde35a182
commit
ddc0249660
@ -350,3 +350,6 @@ function list-large-files {
|
|||||||
echo $LIST | grep '^[0-9.]*M.' | sort -n
|
echo $LIST | grep '^[0-9.]*M.' | sort -n
|
||||||
echo $LIST | grep '^[0-9.]*G.' | sort -n
|
echo $LIST | grep '^[0-9.]*G.' | sort -n
|
||||||
}
|
}
|
||||||
|
yell() { echo "$0: $*" >&2; }
|
||||||
|
die() { yell "$*"; exit 111; }
|
||||||
|
try() { "$@" || die "cannot $*"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user