You've already forked bash-ini-parser
mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-06-11 08:41:36 +03:00
dos2unix issue fixed
This commit is contained in:
committed by
Alberto Fanjul
parent
7ccb706eb1
commit
86622e1cbe
@ -21,6 +21,7 @@ function cfg_parser {
|
||||
shopt -s extglob
|
||||
fi
|
||||
ini="$(<$1)" # read the file
|
||||
ini=${ini//$'\r'/} # remove linefeed i.e dos2unix
|
||||
ini="${ini//[/\\[}" # escape [
|
||||
debug
|
||||
ini="${ini//]/\\]}" # escape ]
|
||||
|
Reference in New Issue
Block a user