Convert line-endings in generated bash scripts. (#8056)
Convert line-endings in generated bash scripts. (#8056)

Fixes #8050

The underlying problem is that we can't control how people have
configured their line-endings when developing on Windows. Git, for
example, has an option to always checkout Windows line endings and
checkin Unix line endings. To account for folks wanting to build images
from Docker for Windows, we can protect them by passing anything we
write from the local repository through the utility "dos2unix" which is
so prevalent its even in Alpine Linux.
yugangw-msft/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli