We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First off: this is excellent and has saved me a lot of time. Thank you for making it and making it public.
I came across this issue when making the linux equivalent of an existing windows installer.
Works fine after converting the CRLF to LF. This is on Ubuntu 16.04.
My guess is that read only looks for LF and the trailing CR is causing it to fail the section regex test.
read
Example INI:
[smtp] host=example.com port=25 authentication=true use_tls=true from_email[email protected] username=ex password=expass
Save it with CRLF line endings and read_ini setup.ini -p setup -b 0 will fail with
read_ini setup.ini -p setup -b 0
Error: Invalid line: 1: [smtp]
The text was updated successfully, but these errors were encountered:
possible fix:
dos_ini_file=$ini_file unset $ini_file tr -d '\r' < $dos_ini_file > $ini_file
Sorry, something went wrong.
No branches or pull requests
First off: this is excellent and has saved me a lot of time. Thank you for making it and making it public.
I came across this issue when making the linux equivalent of an existing windows installer.
Works fine after converting the CRLF to LF. This is on Ubuntu 16.04.
My guess is that
read
only looks for LF and the trailing CR is causing it to fail the section regex test.Example INI:
Save it with CRLF line endings and
read_ini setup.ini -p setup -b 0
will fail withThe text was updated successfully, but these errors were encountered: