From 588dfe6c0090949220b348953ac4bfd76b08ab1b Mon Sep 17 00:00:00 2001 From: Micheal Quinn Date: Mon, 12 Aug 2019 14:40:46 -0500 Subject: [PATCH] Removing cleanup logic. rm -rf in a script terrifies me. The script attempts to place it into the temp dir, so we will let the OS clean it up. --- src/install/rewrite.txt | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/install/rewrite.txt b/src/install/rewrite.txt index 03b5886..34167fc 100644 --- a/src/install/rewrite.txt +++ b/src/install/rewrite.txt @@ -389,21 +389,6 @@ install_file_linux() { return "${rcode}" } - -#--- FUNCTION ---------------------------------------------------------------- -# NAME: cleanup -# DESCRIPTION: Cleanup our temp files -# PARAMETERS: $1 = Path to temp dir to remove -# RETURNS: nothing -#------------------------------------------------------------------------------- -cleanup() { - local dir - - dir="$1" - - rm -rf "${dir}" -} - #--- FUNCTION ---------------------------------------------------------------- # NAME: main # DESCRIPTION: Put it all together in a logical way @@ -579,9 +564,9 @@ main() { exit 1 fi - print_message "== Cleaning up ${tmpdir}" "info" - cleanup "${tmpdir}" print_message "== Installation complete" "ok" + + exit 0 } #-------------------------------------------------------------------------------