Commit 6f7ce2e7 authored by UltimateByte's avatar UltimateByte Committed by GitHub
Browse files

should fix echo

parent ebd39ce8
......@@ -42,13 +42,13 @@ fn_logging(){
# Give a form to echo messages
fn_echo_form(){
currmessage="$@"
echoform="$(date +%Y-%m-%d_%H:%M:%S) - ${selfname} - ${currmessage}"
}
# Simple echo with date and selfname
# Usage fn_echo "Your Message"
fn_echo(){
currmessage="$1"
fn_echo_form
echo -e "${echoform}"
}
......@@ -56,7 +56,9 @@ fn_echo(){
# Echo with date and output to log at the same time
# Usage fn_logecho "Your Message"
fn_logecho(){
fn_echo
currmessage="$1"
fn_echo_form
echo -e "${echoform}"
echo -e "${echoform}" >> "${log}"
currlog="${currlog}$(echo -e "${echoform}\n")"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment