From f00be5e20597da41ab817aa03ab65b5adf7b57e8 Mon Sep 17 00:00:00 2001 From: Stephan Geisler Date: Sat, 5 Jan 2019 23:09:45 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EBuild/status.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build/status.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Build/status.sh b/Build/status.sh index 54f0d2a..af191f1 100644 --- a/Build/status.sh +++ b/Build/status.sh @@ -85,17 +85,11 @@ func_main_LastLog () { # Dateistatus auslesen: # --------------------------------------------------------------------- # .otrkey-Files: - count_otrkey=0 - for i in $(find "$OTRkeydir" -maxdepth 1 -name "*.otrkey" -type f) - do - count_otrkey=$(( count_otrkey + 1 )) - done + count_otrkey=$( ls -t "${OTRkeydir}" | egrep -o '.*.otrkey$' | wc -l ) # wie viele Dateien + # wait of cutlist: - count_waitofcutlist=0 - for i in $(find "$DECODIR" -maxdepth 1 -name "*.avi" -o -name "*.mp4" -type f) - do - count_waitofcutlist=$(( count_waitofcutlist + 1 )) - done + count_waitofcutlist=$( expr $( ls -t "${DECODIR}" | egrep -o '.*.avi$' | wc -l ) + $( ls -t "${DECODIR}" | egrep -o '.*.mp4$' | wc -l ) ) # wie viele Dateien + # manueller synOTR-Start: # ---------------------------------------------------------------------