From b757cda73275e3f3b517a3cff93947f5c83449bd Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sat, 4 Jan 2020 14:48:14 -0500 Subject: [PATCH] error for clearout --- installers/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index a976869..197b08f 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -95,7 +95,6 @@ function download_latest_files() { install_log "Cloning latest files from github" git clone --depth 1 https://github.com/necro-nemesis/SNapp-Pi-Host $snapp_dir || install_error "Unable to download files from github" - sudo rm -r $snapp_dir/installers } # Sets files ownership in SNapp directory @@ -115,6 +114,7 @@ function display_lokiaddress (){ } function install_complete() { + sudo rm -r $snapp_dir/installers || install_error "Unable to remove installers" install_log "Installation completed!" echo -n "Installation complete. Do you wish to launch your SNApp? [y/N]: "