From 86622e1cbe84cab4d5a5cb632c84edb47ddfe2d3 Mon Sep 17 00:00:00 2001 From: Nasir Iqbal Date: Sat, 16 Dec 2017 10:02:30 +0500 Subject: [PATCH] dos2unix issue fixed --- bash-ini-parser | 1 + 1 file changed, 1 insertion(+) diff --git a/bash-ini-parser b/bash-ini-parser index 27aa743..0e4a799 100644 --- a/bash-ini-parser +++ b/bash-ini-parser @@ -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 ]