Cleaned up 'log' function. Variable declarations somehow were inline (didn't affect function, just doesn't look right

This commit is contained in:
Tristan Ancelet 2023-12-01 12:28:52 -06:00
parent f504eb3c63
commit dd157e834c

View File

@ -22,7 +22,9 @@ DESKTOP_FILE_NEEDS_UPDATE=0
# BEGIN: Helper Functions
function log () {
if [[ $DEBUG -eq 1 ]]; then local DATE=`date` local MESSAGE="${1:?"log: Message not provided"}"
if [[ $DEBUG -eq 1 ]]; then
local DATE=`date`
local MESSAGE="${1:?"log: Message not provided"}"
echo "$DATE : $MESSAGE"
fi
}