Merge pull request #1394 from pi-hole/fix/remove-temp-gravity-files

Delete the temp files created by gravity
This commit is contained in:
DL6ER 2017-04-19 08:46:01 +02:00 committed by GitHub
commit d0f55e5125

View file

@ -167,7 +167,11 @@ gravity_transport() {
# Process result
gravity_patternCheck "${patternBuffer}" ${success} "${err}"
# Delete temp file if it hasn't been moved
if [[ -f "${patternBuffer}" ]]; then
rm "${patternBuffer}"
fi
}
# spinup - main gravity function