aboutsummaryrefslogtreecommitdiff
path: root/lib/actions/clean.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/actions/clean.bash')
-rw-r--r--lib/actions/clean.bash11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/actions/clean.bash b/lib/actions/clean.bash
new file mode 100644
index 0000000..c00e85d
--- /dev/null
+++ b/lib/actions/clean.bash
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+action() {
+ remove "$BASEDIR/tmp"
+ remove "$BASEDIR/install"
+}
+
+remove() {
+ info "Removing $1"
+ rm -fr -- "$1"
+}