Cleaned up 'log' function. Variable declarations somehow were inline (didn't affect function, just doesn't look right
This commit is contained in:
parent
f504eb3c63
commit
dd157e834c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user