Skip to content

Commit d305a36

Browse files
author
DavideC03
committed
v09.01.16
1 parent 93abe92 commit d305a36

File tree

3 files changed

+29
-14
lines changed

3 files changed

+29
-14
lines changed

bin/createstructure_debian.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ debian::debian(inputs i, setting s)
120120
"",
121121
payload,
122122
"POST");
123-
if (r["message"].get<string>().compare("error")) {
123+
if (r["message"].get<string>().compare("error") == 0) {
124124
cout << getEmoji("X") << RED << " " << r["error"].get<string>() << RESET << endl;
125125
} else {
126126
cout << getEmoji("check") << GREEN << " " << r["message"].get<string>() << RESET << endl;

bin/createstructure_elaborate.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ void elaborateFile(string filename, vector<pair<string, string>> changes)
5757
// Put the changed content in the same folder
5858
ofstream f(filename);
5959
f << replace(old, changes);
60+
61+
string new_path = replace(filename, changes);
62+
if (new_path.compare(filename) != 0) {
63+
// Create new directory tree
64+
filesystem::create_directories(((filesystem::path) new_path).remove_filename());
65+
66+
// Rename file
67+
filesystem::rename(filename.c_str(), new_path.c_str());
68+
}
6069
}
6170
}
6271

docs/CHANGELOG.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,45 @@
22
Repo containing the library used by [core-createstructure](https://github.com/createstructure/core-createstructure) & [manager-createstructure](https://github.com/createstructure/manager-createstructure)
33

44
- [Changelog](#changelog)
5-
- [[09.01.15] - 2021-09-10](#090115---2021-09-10)
5+
- [[09.01.16] - 2021-09-10](#090116---2021-09-10)
66
- [Changed](#changed)
7-
- [[09.01.14] - 2021-09-07](#090114---2021-09-07)
7+
- [[09.01.15] - 2021-09-10](#090115---2021-09-10)
88
- [Changed](#changed-1)
9-
- [[09.01.13] - 2021-08-13](#090113---2021-08-13)
9+
- [[09.01.14] - 2021-09-07](#090114---2021-09-07)
1010
- [Changed](#changed-2)
11-
- [[09.01.12] - 2021-07-18](#090112---2021-07-18)
11+
- [[09.01.13] - 2021-08-13](#090113---2021-08-13)
1212
- [Changed](#changed-3)
13+
- [[09.01.12] - 2021-07-18](#090112---2021-07-18)
14+
- [Changed](#changed-4)
1315
- [[09.01.11] - 2021-07-18](#090111---2021-07-18)
1416
- [Added](#added)
1517
- [[09.01.10] - 2021-07-18](#090110---2021-07-18)
1618
- [Added](#added-1)
17-
- [Changed](#changed-4)
18-
- [[09.01.09] - 2021-07-17](#090109---2021-07-17)
1919
- [Changed](#changed-5)
20+
- [[09.01.09] - 2021-07-17](#090109---2021-07-17)
21+
- [Changed](#changed-6)
2022
- [[09.01.08] - 2021-07-17](#090108---2021-07-17)
2123
- [Added](#added-2)
22-
- [Changed](#changed-6)
23-
- [[09.01.07] - 2021-07-17](#090107---2021-07-17)
2424
- [Changed](#changed-7)
25-
- [[09.01.06] - 2021-07-15](#090106---2021-07-15)
25+
- [[09.01.07] - 2021-07-17](#090107---2021-07-17)
2626
- [Changed](#changed-8)
27-
- [[09.01.05] - 2021-07-13](#090105---2021-07-13)
27+
- [[09.01.06] - 2021-07-15](#090106---2021-07-15)
2828
- [Changed](#changed-9)
29-
- [[09.01.04] - 2021-07-07](#090104---2021-07-07)
29+
- [[09.01.05] - 2021-07-13](#090105---2021-07-13)
3030
- [Changed](#changed-10)
31-
- [[09.01.03] - 2021-07-07](#090103---2021-07-07)
31+
- [[09.01.04] - 2021-07-07](#090104---2021-07-07)
3232
- [Changed](#changed-11)
33-
- [[09.01.02] - 2021-07-04](#090102---2021-07-04)
33+
- [[09.01.03] - 2021-07-07](#090103---2021-07-07)
3434
- [Changed](#changed-12)
35+
- [[09.01.02] - 2021-07-04](#090102---2021-07-04)
36+
- [Changed](#changed-13)
3537
- [[09.01.01] - 2021-06-25](#090101---2021-06-25)
3638
- [Added](#added-3)
3739

40+
## [09.01.16] - 2021-09-10
41+
### Changed
42+
- Fixed an [issue](https://github.com/createstructure/libraries-createstructure/issues/2)
43+
3844
## [09.01.15] - 2021-09-10
3945
### Changed
4046
- Fixed an [issue](https://github.com/createstructure/libraries-createstructure/issues/1)

0 commit comments

Comments
 (0)