From 5e308dbd51051177708c1557bfb132f7f5905f8c Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Tue, 18 Apr 2017 20:35:06 -0400 Subject: [PATCH] Delete the temp files created by gravity --- gravity.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 0dc1e678..0dccd77b 100755 --- a/gravity.sh +++ b/gravity.sh @@ -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