diff --git a/bin/cronTask.sh.sample b/bin/cronTask.sh.sample index 463b54a..d9d06b9 100644 --- a/bin/cronTask.sh.sample +++ b/bin/cronTask.sh.sample @@ -13,12 +13,13 @@ mimeMagic=/etc/mime.types cd $tempDest nbProcessLauch=$(ps -ef | grep -v grep | grep youtube-dl | wc -l) - -if [ $nbProcessLauch != 0 ] +nbEncodeLauch=$(ps -ef | grep -v grep | grep "$convertingTool" | wc -l) +if [ "$nbProcessLauch" -ne 0 ] || [ "$nbEncodeLauch" -ne 0 ] then exit fi + for file in $tempDest*.hash do if [ -f $file ];