[fix] bad detection of other instance of cronTask
This commit is contained in:
parent
c842a5f6f4
commit
5dd151ca6d
|
@ -4,7 +4,7 @@ tempDest=/path/of/sovigall/tmp/
|
||||||
threads=3 # nb cpu core - 1
|
threads=3 # nb cpu core - 1
|
||||||
cd $tempDest
|
cd $tempDest
|
||||||
|
|
||||||
nbProcessLauch=$(ps -e | grep -v grep | grep youtube-dl | wc -l)
|
nbProcessLauch=$(ps -ef | grep -v grep | grep youtube-dl | wc -l)
|
||||||
|
|
||||||
if [ $nbProcessLauch != 0 ]
|
if [ $nbProcessLauch != 0 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue