diff --git a/bin/cronTask.sh.sample b/bin/cronTask.sh.sample index 1a69619..d38d439 100644 --- a/bin/cronTask.sh.sample +++ b/bin/cronTask.sh.sample @@ -4,7 +4,7 @@ tempDest=/path/of/sovigall/tmp/ threads=3 # nb cpu core - 1 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 ] then @@ -14,7 +14,7 @@ fi for file in $tempDest*.hash do - if [[ -f $file ]]; + if [ -f $file ]; then while read urlHash url destination do