Use mv -f. Otherwise if you accidently build as root, and then as a user,
it keeps asking you if you want to overwrite it or not. Submitted by: peter
This commit is contained in:
parent
7cd0f94f3b
commit
c5cfcb15b3
@ -474,9 +474,9 @@ for (file_i = 0; file_i < num_files; file_i++) {
|
||||
}
|
||||
else {
|
||||
if (opt_c)
|
||||
system_check("mv " ctmpfilename " " cfilename);
|
||||
system_check("mv -f " ctmpfilename " " cfilename);
|
||||
if (opt_h)
|
||||
system_check("mv " htmpfilename " " hfilename);
|
||||
system_check("mv -f " htmpfilename " " hfilename);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user