quamotion / dotnet-packaging

Extensions for the .NET Core CLI which help packaging and publishing .NET Core applications
MIT License
660 stars 86 forks source link

Trim Debian install/remove scripts and fix line endings to Unix LF #236

Open andersemil opened 1 year ago

andersemil commented 1 year ago

When creating a daemon for Linux, we needed to add a PostRemoveScript. When doing so, our programmer's Visual Studio was set to using CRLF line endings. Since scripts seem to be raw copied, this created invalid scripts for Linux systems. We propose a fix by trimming the scripts and replacing CRLF line endings with LF.