Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 9bcd06b

Browse files
committed
Updated to fix issue #1
1 parent 95e9817 commit 9bcd06b

File tree

5 files changed

+14
-22
lines changed

5 files changed

+14
-22
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ All notable changes to this project will be documented in this file.
55

66
This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)
77

8-
### [Unreleased](https://github.com/DevelopersToolbox/ini-file-parser/compare/v0.1.0...HEAD)
8+
### [v0.1.1](https://github.com/DevelopersToolbox/ini-file-parser/compare/v0.1.0...v0.1.1)
99

10-
- rebrand [`[head]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/)
10+
> Released on January, 3rd 2022
11+
12+
- Updated to fix issue #1 [`[head]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/)
13+
14+
- rebrand [`[95e9817]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/95e981711406b5787269baa7070f6e1974dd9a31)
1115

1216
- rebrand [`[ea2650e]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/ea2650ecc5ce31b78efa2bc23190dfb867c33f38)
1317

@@ -17,5 +21,9 @@ This changelog was automatically generated using [Caretaker](https://github.com/
1721

1822
- Rename tests -> demos to be more in line with other projects [`[a7ef94a]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/a7ef94a39834afc7931bb41b5071b9fed6b3d067)
1923

24+
### [v0.1.0](https://github.com/DevelopersToolbox/ini-file-parser/releases/v0.1.0)
25+
26+
> Released on February, 18th 2021
27+
2028
- The initial commit [`[1be9f73]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/1be9f731866391877af53f826b5d4147fe6a7a12)
2129

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

demos/complete-example.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ value2=5678
1919
[SECTION2]
2020
value1=abcd
2121
value2=efgh
22+
value3='This has spaces'
2223

2324
# Test clean up of section headers / key names / ignore comments
2425
[ section3 ]

src/ini-file-parser.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ function process_section_name()
155155
if [[ "${local_case_sensitive_sections}" = false ]]; then
156156
section=$(echo -e "${section}" | tr '[:upper:]' '[:lower:]') # Lowercase the section name
157157
fi
158-
159158
echo "${section}"
160159
}
161160

@@ -253,7 +252,8 @@ function process_ini_file()
253252
fi
254253
eval "${section}_keys+=(${key})" # Use eval to add to the keys array
255254
eval "${section}_values+=(${value})" # Use eval to add to the values array
256-
eval "${section}_${key}=${value}" # Use eval to declare a variable
255+
# eval "${section}_${key}=${value}" # Use eval to declare a variable
256+
eval "${section}_${key}=\"${value}\"" # Use eval to declare a variable
257257
fi
258258
fi
259259
done < "$1"

stale.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)