[add] check encode process
This commit is contained in:
parent
0b4de0357b
commit
17659173e3
|
@ -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 ];
|
||||
|
|
Loading…
Reference in New Issue