File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ if [ "$DEPENDENCY_MANAGER" = "pip" ]; then
2323
2424 projects=` find " $SOURCE_PATH " -mindepth 1 -maxdepth 1 -type d -name " *" `
2525 requirements_files=` find " $SOURCE_PATH " -mindepth 2 -maxdepth 2 -type f -name ' requirements.txt' `
26+ hosts_files=` find " $SOURCE_PATH " -mindepth 2 -maxdepth 2 -type f -name ' host.json' `
2627
2728 if [ -n " $requirements_files " ]; then
2829
@@ -35,7 +36,7 @@ if [ "$DEPENDENCY_MANAGER" = "pip" ]; then
3536 echo -e " \n${BLUE} These files will be used and not modified. No other file will be created.${ENDCOLOR} "
3637 no_existing_file=false
3738
38- if [ " $( echo " $requirements_files " | wc -l) " -ne " $( echo " $projects " | wc -l) " ]; then
39+ if [ " $( echo " $requirements_files " | wc -l) " -ne " $( echo " $hosts_files " | wc -l) " ]; then
3940 echo -e " \n${RED} The number of 'requirements.txt' files should match the number of Azure Function projects.${ENDCOLOR} \n"
4041 fi
4142
You can’t perform that action at this time.
0 commit comments