From 346cfdc2d1aa97efd94373549d0106a8ddbea909 Mon Sep 17 00:00:00 2001 From: ayakael Date: Mon, 23 Jul 2018 07:41:22 -0800 Subject: [PATCH] [cmd_import_images] Now cleans up .import folder when done --- src/cmd_import_images | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd_import_images b/src/cmd_import_images index 69e1976..ba33e18 100644 --- a/src/cmd_import_images +++ b/src/cmd_import_images @@ -57,6 +57,8 @@ cmd_import_images() { import_src "${GIT_DIR}" "${import}" >${STDERR} 2>&1 local EXIT=$? [[ ${EXIT} -eq 0 ]] && _msg OK || _msg WARN "import_src exited with code ${EXIT}" + rm -Rf "${import}" >/dev/null 2>&1 done done + rm -Rf "${GIT_DIR}/.import" >/dev/null 2>&1 }