bootstrap.sh cleans up after itself a bit better
parent
a60102988f
commit
03830987af
28
bootstrap.sh
28
bootstrap.sh
|
|
@ -51,7 +51,7 @@ fi
|
|||
|
||||
echo ""
|
||||
# a check to see if they're using a config file and if it has a host setup
|
||||
if [[ -f "${dest}/.ssh/config" && -z $(cat "${dest}/.ssh/config" | grep "[hH]ost \*")]]; then
|
||||
if [[ -f "${dest}/.ssh/config" && -z $(cat "${dest}/.ssh/config" | grep "[hH]ost \*") ]]; then
|
||||
echo "Appending ssh config"
|
||||
# we append it so we don't destroy any custom settings they may have
|
||||
cat "${source}/.ssh/config" >> "${dest}/.ssh/config"
|
||||
|
|
@ -64,7 +64,7 @@ fi
|
|||
|
||||
if [[ $(uname -s) == "Darwin" ]]; then
|
||||
echo "running .osx file"
|
||||
./.osx
|
||||
sudo ./.osx
|
||||
echo "installing brew"
|
||||
./brew.sh
|
||||
fi
|
||||
|
|
@ -72,12 +72,24 @@ fi
|
|||
|
||||
echo ""
|
||||
echo "Cleaning up..."
|
||||
rm -rf ${dest}/.git
|
||||
rm -rf ${dest}/.gitmodules
|
||||
rm -rf ${dest}/.gitignore
|
||||
rm -rf ${dest}/bootstrap.sh
|
||||
rm -rf ${dest}/remove.sh
|
||||
rm -rf ${dest}/README.md
|
||||
cleanup=".git
|
||||
.gitmodules
|
||||
.gitignore
|
||||
bootstrap.sh
|
||||
remove.sh
|
||||
README.md
|
||||
.osx
|
||||
brew.sh"
|
||||
|
||||
|
||||
for f in ${cleanup}
|
||||
do
|
||||
filetorm = ${dest}/${f}
|
||||
if [[ -f ${filetorm} ]]; then
|
||||
rm -rf $filetorm
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
popd 2&> /dev/null
|
||||
echo "To uninstall, do cd ./lauging-hipster && ./remove.sh"
|
||||
|
|
|
|||
6
brew.sh
6
brew.sh
|
|
@ -10,6 +10,7 @@ brew update && brew install \
|
|||
docker-machine \
|
||||
git \
|
||||
gnupg \
|
||||
mono \
|
||||
nvm \
|
||||
openssl \
|
||||
python \
|
||||
|
|
@ -26,3 +27,8 @@ rbenv install 1.9.3-p125;
|
|||
rbenv global 1.9.3-p125;
|
||||
|
||||
brew install macvim --override-system-vim --with-lua --with-python;
|
||||
|
||||
rake
|
||||
|
||||
~/tools/vim/bundle/YouCompleteMe/install.py --all
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue