From 9aa38cf0ae11b0142ba7ac74341701f953af3c8f Mon Sep 17 00:00:00 2001 From: Promofaux Date: Wed, 19 Oct 2016 23:57:43 +0100 Subject: [PATCH] mv patternbuffer instead of cp, then no need to clean up --- gravity.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gravity.sh b/gravity.sh index a5e7c047..990b18ee 100755 --- a/gravity.sh +++ b/gravity.sh @@ -107,7 +107,7 @@ gravity_patternCheck() { # Some of the blocklists are copyright, they need to be downloaded # and stored as is. They can be processed for content after they # have been saved. - cp "$patternBuffer" "$saveLocation" + mv "$patternBuffer" "$saveLocation" echo " List updated, transport successful!" else # curl didn't download any host files, probably because of the date check @@ -133,8 +133,6 @@ gravity_transport() { curl -s -L ${cmd_ext} ${heisenbergCompensator} -A "$agent" ${url} > ${patternBuffer} # Check for list updates gravity_patternCheck "$patternBuffer" - # Cleanup - rm -f "$patternBuffer" } # spinup - main gravity function