diff options
author | Daniel Francis <francis@sugarlabs.org> | 2013-01-24 13:49:06 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2013-01-24 13:49:06 (GMT) |
commit | bb2da3c3888bea095163bf95cc3e276c44d00167 (patch) | |
tree | 874a4bfef8f3f9eedd6b85fc3f636443aed907e1 /env.sh | |
parent | 107ec296ca35c9f44e676e2d0d8eaf880f230987 (diff) |
Clean install directory
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'env.sh')
-rwxr-xr-x | env.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 } |