initial commit
This commit is contained in:
commit
5e93e260d6
6
bash/errmsg.sh
Normal file
6
bash/errmsg.sh
Normal 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
3
bash/function_source.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user