Clean log_msg() in ftpadmin.sh

Made the code a bit cleaner and added proper variable quoting.
This commit is contained in:
Patrick Marchand 2018-11-07 17:25:12 -05:00
parent 872f1532d5
commit 1e82272487
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ EOT
}
log_msg() {
curdate=`date +"%Y/%m/%d %H:%M:%S"`
echo "$curdate $1" >>$FTPLOG_PATH
curdate="$(date +"%Y/%m/%d %H:%M:%S")"
echo "$curdate $1" >> "$FTPLOG_PATH"
}
get_user_login_by_UID() {