Add Log function

pull/11/head
RandomNinjaAtk 4 years ago committed by GitHub
parent c3ab5ca113
commit 17f6ce4157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,11 @@ set -e
echo "" echo ""
log () {
m_time=`date "+%F %T"`
echo $m_time" "$1
}
# check for video files # check for video files
if find "$1" -type f -iregex ".*/.*\.\(mkv\|mp4\|avi\)" | read; then if find "$1" -type f -iregex ".*/.*\.\(mkv\|mp4\|avi\)" | read; then
sleep 0.1 sleep 0.1

Loading…
Cancel
Save