Skip to content

Commit 251d883

Browse files
authored
Update 27-install-requirements-azure-function-python.sh
1 parent e9c533f commit 251d883

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.devcontainer/install/27-install-requirements-azure-function-python.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)