更新diy命令参数识别

This commit is contained in:
whyour 2021-03-28 20:07:50 +08:00
parent 5b874befb8
commit 44addb6ff3

View File

@ -46,7 +46,10 @@ rand(){
function addnewcron {
addname=""
cd ${diyscriptsdir}/${author}_${repo}
express=$(find . -name "*.js" | egrep $path)
express=$(find . -name "*.js")
if [ $path ];then
express=$(find . -name "*.js" | egrep $path)
fi
if [ $blackword ];then
express=$(find . -name "*.js" | egrep -v $blackword | egrep $path)
fi