1
0
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:
Tim Vanderhoek 2000-06-02 04:32:37 +00:00
parent b441812ca5
commit 87dc218ee3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61171

View File

@ -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;