initial commit

This commit is contained in:
David Thurstenson 2017-01-26 19:04:31 -06:00
commit 5e93e260d6
2 changed files with 9 additions and 0 deletions

6
bash/errmsg.sh Normal file
View File

@ -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
}

3
bash/function_source.sh Normal file
View File

@ -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