mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Use rm -f
if the -f (force) option was given.
This commit is contained in:
parent
b441812ca5
commit
87dc218ee3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61171
@ -204,7 +204,7 @@ pkg_do(char *pkg)
|
||||
}
|
||||
|
||||
if (!Fake) {
|
||||
if (vsystem("%s -r %s", REMOVE_CMD, LogDir)) {
|
||||
if (vsystem("%s -r%c %s", REMOVE_CMD, Force ? 'f' : ' ', LogDir)) {
|
||||
warnx("couldn't remove log entry in %s, deinstall failed", LogDir);
|
||||
if (!Force)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user