update.sh is saved in DOS format instead of Unix format
See original GitHub issueEvery time I am updating my Grocy instance with the update.sh, I need to convert it to the unix format first. The script is unable to run, as it interprets the \r line endings as a character.
This can be fixed if I run dos2unix update.sh
before running the update.sh script. However, with every update the update script is overwritten.
As far as I am aware, this seems only to be an issue with the update.sh in the release archive.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
HowTo: UNIX / Linux Convert DOS Newlines CR-LF ... - nixCraft
To converts text files between DOS and Unix formats you need to use special utility called dos2unix. DOS text files traditionally have carriage ......
Read more >Converting from Windows-style to UNIX-style line endings
Simple: Use the program dos2unix . Just give the name of your file to dos2unix as an argument, and it will convert the...
Read more >DOS to Unix: Commands and Examples {6 Methods Explained}
6 ways to convert a DOS to Unix file by removing the r line ending or replacing it with just line feeds. Convert...
Read more >Convert between Unix and Windows text files - IU KB
Convert between Unix and Windows text files. Overview. The format of Windows and Unix text files differs slightly. In Windows, lines end ...
Read more >need to write a script to change file format from dos to unix
First, check out whether you have a dos2unix or dos2ux command; it already does this for you. With Vim, this should do the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think most of all who don’t want to fiddle with the webserver parts use the Docker images…
PHP can handle both line endings. Blank page errors were mostly about wrong rewriting rules, wrong root directory settings or something similar in the past - please check the webserver and PHP logs…