This commit is contained in:
2023-11-29 07:13:33 -06:00
parent 0ebab689b7
commit fcc86b3760

View File

@@ -39,10 +39,10 @@ alias do_sync='rsync -avhu --progress --delete --partial --links'
################### GLOBAL FUNCTIONS ######################### ################### GLOBAL FUNCTIONS #########################
msg() { msg() {
printf '>>>>>>>>>>>>[MESSAGE]: %s\n' "$*" printf '>>>>>[MESSAGE]: %s\n' "$*"
} }
errmsg() { errmsg() {
>&2 printf '>>>>>>>>>>>>[ERROR]: %s\n' "$*" >&2 printf '>>>>>>[ERROR]: %s\n' "$*"
} }
die() { die() {
errmsg "$*" errmsg "$*"
@@ -50,7 +50,7 @@ die() {
} }
debug() { debug() {
if [ "$DEBUG" ] ; then if [ "$DEBUG" ] ; then
>&2 printf '>>>>>>>>>DEBUG: %s\n' "$*" >&2 printf '>>>>>>DEBUG: %s\n' "$*"
fi fi
} }
isempty() { isempty() {