diff --git a/bootstrap.sh b/bootstrap.sh index 187f3de..49841f4 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,6 +3,11 @@ ME="waldek" LOCALHOME="/home/" +if [ $USER != $ME ]; then + echo "you need to run this script as yourself, but you need to be in the sudo group..." + exit 1 +fi + echo "setting up $ME" HOME=$LOCALHOME$ME sudo apt update && sudo apt install -y zsh git tig tmux vim-nox htop @@ -15,4 +20,4 @@ git clone https://gitea.86thumbs.net/waldek/vimrc.git $HOME/sources/vimrc cd $HOME ln -s $HOME/sources/vimrc/main.vimrc $HOME/.vimrc git clone https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim -vim +VundleInstall +qall" +vim +VundleInstall +qall