initial commit
This commit is contained in:
commit
5e93e260d6
|
@ -0,0 +1,6 @@
|
||||||
|
errmsg() {
|
||||||
|
# Usage: errmsg <text>
|
||||||
|
# prints "Error in <functionname>: <text>" to stderr
|
||||||
|
printf "Error in %s: %s\n" "${FUNCNAME[1]}" "$1" >&2
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
# Allows for using these functions as commands by sourcing this script
|
||||||
|
[[ $- != *i* ]] && return
|
Loading…
Reference in New Issue