Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bash-ini-parser
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ function cfg_parser {
then
shopt -s extglob
fi
ini="$(<$1)" # read the file
ini=${ini//$'\r'/} # remove linefeed i.e dos2unix
ini="$(<$1)" # read the file
ini=${ini//$'\r'/} # remove linefeed i.e dos2unix
ini=$(echo "${ini}" | awk NF) # Remove the empty lines.

ini="${ini//[/\\[}"
debug "escaped ["
Expand Down