1
0
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:
Nasir Iqbal
2017-12-16 10:02:30 +05:00
committed by Alberto Fanjul
parent 7ccb706eb1
commit 86622e1cbe

View File

@ -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 ]