]> git.wincent.com - docvim.git/commitdiff
Add bin/clean script
authorGreg Hurrell <greg@hurrell.net>
Fri, 10 Jun 2016 06:06:33 +0000 (23:06 -0700)
committerGreg Hurrell <greg@hurrell.net>
Fri, 10 Jun 2016 06:06:33 +0000 (23:06 -0700)
bin/clean [new file with mode: 0755]

diff --git a/bin/clean b/bin/clean
new file mode 100755 (executable)
index 0000000..c7e3d89
--- /dev/null
+++ b/bin/clean
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Via:
+# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+rm -rf "$DIR/../.stack-work/dist"