Permalink
Browse files

added cleanup function

  • Loading branch information...
1 parent b9d12f7 commit 0e5b44d76e453dd2061aa8960853b7e299f23f0f @nickbarth committed Dec 30, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/common/init.sh
View
@@ -28,6 +28,10 @@ run_install()
fi
eval "${application}_install"
done
+ # Remove install directory unless flag is set.
+ if [[ $@ != *-cleanup* ]]; then
+ run_cleanup
+ fi
fi
}
@@ -40,6 +44,12 @@ check_compad()
fi
}
+# Remove the install directory.
+run_cleanup()
+{
+ rm -rf `ls /tmp/* -t1d | grep Sev.re`
+}
+
# Adds an executable path to the bashrc if its not already there.
#
# $1 - Name of application.

0 comments on commit 0e5b44d

Please sign in to comment.