From 17f6ce415739c1729da444d16de91e3f30741546 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 8 Sep 2020 07:44:36 -0400 Subject: [PATCH] Add Log function --- root/scripts/video-pp.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/scripts/video-pp.bash b/root/scripts/video-pp.bash index cf4a518..874ee87 100644 --- a/root/scripts/video-pp.bash +++ b/root/scripts/video-pp.bash @@ -6,6 +6,11 @@ set -e echo "" +log () { + m_time=`date "+%F %T"` + echo $m_time" "$1 +} + # check for video files if find "$1" -type f -iregex ".*/.*\.\(mkv\|mp4\|avi\)" | read; then sleep 0.1