mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-03-21 11:35:18 +00:00
Fix for GitHub issue #40: updates.d not being cleared.
This commit is contained in:
parent
093d745b86
commit
268ec8d1e0
@ -8,6 +8,7 @@ LIBS=
|
||||
|
||||
ifeq ($(ZT_OFFICIAL_RELEASE),1)
|
||||
ZT_AUTO_UPDATE=1
|
||||
DEFS+=-DZT_OFFICIAL_RELEASE
|
||||
endif
|
||||
ifeq ($(ZT_AUTO_UPDATE),1)
|
||||
DEFS+=-DZT_AUTO_UPDATE
|
||||
|
@ -81,7 +81,7 @@ void SoftwareUpdater::cleanOldUpdates()
|
||||
std::map<std::string,bool> dl(Utils::listDirectory(updatesDir.c_str()));
|
||||
for(std::map<std::string,bool>::iterator i(dl.begin());i!=dl.end();++i) {
|
||||
if (!i->second)
|
||||
Utils::rm(i->first.c_str());
|
||||
Utils::rm((updatesDir + ZT_PATH_SEPARATOR_S + i->first).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user