1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

Delete the temp files created by gravity

This commit is contained in:
Mcat12 2017-04-18 20:35:06 -04:00 committed by GitHub
parent c3c554f4d6
commit 5e308dbd51

View File

@ -167,7 +167,11 @@ gravity_transport() {
# Process result # Process result
gravity_patternCheck "${patternBuffer}" ${success} "${err}" 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 # spinup - main gravity function