Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2013-01-24 13:49:06 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2013-01-24 13:49:06 (GMT)
commitbb2da3c3888bea095163bf95cc3e276c44d00167 (patch)
tree874a4bfef8f3f9eedd6b85fc3f636443aed907e1 /env.sh
parent107ec296ca35c9f44e676e2d0d8eaf880f230987 (diff)
Clean install directory
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-xenv.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/env.sh b/env.sh
index 30851a0..0c5b4ea 100755
--- a/env.sh
+++ b/env.sh
@@ -26,9 +26,19 @@ check_root () {
echo "[OK]"
}
+clean_install () {
+ echo "Cleaning install directory"
+ if [ -d ./install ]; then
+ rm -Rf ./install
+ fi
+ mkdir install
+ echo "[OK]"
+}
+
# Installation function
installenv () {
check_root
+ clean_install
exit
}