Details
-
Bug
-
Resolution: Duplicate
-
Medium
Description
- Create a .ps1 (PowerShell) file like so in PS: "get-date" > "date.ps1"
- PS creates a new file with .NET's default encoding
- Push file to BB.
Now BB thinks our date.ps1 file is a binary file. It should detect the encoding and show it as a regular PowerShell file (maybe with a hint at the fact that the encoding isn't ASCII/UTF8).
- On Win, re-encode the date.ps1 file to use UTF8.
- Push again.
Now BB will correctly detect date.ps1 as a PowerShell file.