[add] check encode process

This commit is contained in:
Knah Tsaeb 2015-01-30 14:26:17 +01:00
parent 0b4de0357b
commit 17659173e3
1 changed files with 3 additions and 2 deletions

View File

@ -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 ];