If we pass a directory (container) to the parameterFilePath parameter of the New-ModuleDeployment.ps1 script, the logic detects the directory correctly, however it only deploys the first file in that directory.
Cause:
We have a return function being called at the end of the deployment, which exits the script
Removing this line has implications on other steps as the output is being used elsewhere.
Need to investigate other methods to achieve the same outcome.
If we pass a directory (container) to the
parameterFilePathparameter of theNew-ModuleDeployment.ps1script, the logic detects the directory correctly, however it only deploys the first file in that directory.Cause:
We have a
returnfunction being called at the end of the deployment, which exits the scriptRemoving this line has implications on other steps as the output is being used elsewhere.
Need to investigate other methods to achieve the same outcome.