HCoop
/
clinton
/
Smoothieware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove config-override fil ebefore appending to it
[clinton/Smoothieware.git]
/
src
/
modules
/
utils
/
simpleshell
/
SimpleShell.cpp
diff --git
a/src/modules/utils/simpleshell/SimpleShell.cpp
b/src/modules/utils/simpleshell/SimpleShell.cpp
index
f8aeb11
..
a6a4b9c
100644
(file)
--- a/
src/modules/utils/simpleshell/SimpleShell.cpp
+++ b/
src/modules/utils/simpleshell/SimpleShell.cpp
@@
-445,6
+445,7
@@
void SimpleShell::save_command( string parameters, StreamOutput *stream )
filename = THEKERNEL->config_override_filename();
}
+ remove(filename.c_str());
// replace stream with one that writes to config-override file
AppendFileStream *gs = new AppendFileStream(filename.c_str());
// if(!gs->is_open()) {