[add] check encode process
This commit is contained in:
parent
0b4de0357b
commit
17659173e3
|
@ -13,12 +13,13 @@ mimeMagic=/etc/mime.types
|
||||||
cd $tempDest
|
cd $tempDest
|
||||||
|
|
||||||
nbProcessLauch=$(ps -ef | grep -v grep | grep youtube-dl | wc -l)
|
nbProcessLauch=$(ps -ef | grep -v grep | grep youtube-dl | wc -l)
|
||||||
|
nbEncodeLauch=$(ps -ef | grep -v grep | grep "$convertingTool" | wc -l)
|
||||||
if [ $nbProcessLauch != 0 ]
|
if [ "$nbProcessLauch" -ne 0 ] || [ "$nbEncodeLauch" -ne 0 ]
|
||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
for file in $tempDest*.hash
|
for file in $tempDest*.hash
|
||||||
do
|
do
|
||||||
if [ -f $file ];
|
if [ -f $file ];
|
||||||
|
|
Loading…
Reference in a new issue