question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

update.sh is saved in DOS format instead of Unix format

See original GitHub issue

Every 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.

Bash output

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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
berrndcommented, Nov 21, 2019

I think most of all who don’t want to fiddle with the webserver parts use the Docker images…

1reaction
berrndcommented, Nov 19, 2019

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found