diff --git a/shell/git_diy.sh b/shell/git_diy.sh index afe80d7f..e376d7d6 100755 --- a/shell/git_diy.sh +++ b/shell/git_diy.sh @@ -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