mirror of https://github.com/Icinga/icinga2.git
parent
a02d7d7502
commit
aaa4878017
|
@ -271,10 +271,12 @@ incomplete:
|
||||||
if (commandOnce.IsEmpty()) {
|
if (commandOnce.IsEmpty()) {
|
||||||
add_history(cline);
|
add_history(cline);
|
||||||
|
|
||||||
|
if (cline[0] != '\0') {
|
||||||
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
|
||||||
historyfp << cline << "\n";
|
historyfp << cline << "\n";
|
||||||
historyfp.close();
|
historyfp.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
line = cline;
|
line = cline;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue