vm: Don't exit if some files aren't there

This commit is contained in:
Brandon Heller
2010-08-18 04:43:51 -07:00
parent f9654e5654
commit 4800435d1a
+5 -4
View File
@@ -310,22 +310,23 @@ function vm_clean {
# Remove sensistive files
history -c # note this won't work if you have multiple bash sessions
rm ~/.bash_history # need to clear in memory and remove on disk
rm -f ~/.bash_history # need to clear in memory and remove on disk
rm -f ~/.ssh/id_rsa* ~/.ssh/known_hosts
sudo rm ~/.ssh/authorized_keys2
sudo rm -f ~/.ssh/authorized_keys2
# Remove Mininet files
#sudo rm -f /lib/modules/python2.5/site-packages/mininet*
#sudo rm -f /usr/bin/mnexec
# Clear optional dev script for SSH keychain load on boot
rm ~/.bash_profile
rm -f ~/.bash_profile
# Clear git changes
git config --global user.name "None"
git config --global user.email "None"
#sudo rm -rf ~/mininet
# Remove mininet install script
rm -f install-mininet.sh
}
function usage {