forked from cohabit/server_config
fix: remove base dir and not only files before git clone
This commit is contained in:
parent
cf998be24c
commit
807917338e
|
@ -18,9 +18,9 @@ else
|
|||
deno
|
||||
fi
|
||||
|
||||
# Remove old files if exists
|
||||
rm -rf /srv/portfolio
|
||||
# Create fs tree is missing
|
||||
mkdir -p /srv/portfolio
|
||||
# Remove old files if exists
|
||||
rm -rf /srv/portfolio/*
|
||||
# Clone website repo
|
||||
git clone -b main --depth 1 https://git.cohabit.fr/cohabit/portfolio_server.git /srv/portfolio
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
nala install -y vim
|
||||
|
||||
# Install or upgrade vundle
|
||||
rm -rf /root/.vim/bundle/Vundle.vim/*
|
||||
rm -rf /root/.vim/bundle/Vundle.vim
|
||||
git clone https://github.com/VundleVim/Vundle.vim.git /root/.vim/bundle/Vundle.vim
|
||||
|
|
|
@ -4,10 +4,10 @@ chsh -s /usr/bin/zsh
|
|||
|
||||
# Install zsh-autosuggestions plugin
|
||||
PATH=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
rm -rf $PATH/*
|
||||
rm -rf $PATH
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions $PATH
|
||||
|
||||
# Install zsh-syntax-highlighting
|
||||
PATH=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||
rm -rf $PATH/*
|
||||
rm -rf $PATH
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting $PATH
|
||||
|
|
Loading…
Reference in a new issue