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
|
deno
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove old files if exists
|
||||||
|
rm -rf /srv/portfolio
|
||||||
# Create fs tree is missing
|
# Create fs tree is missing
|
||||||
mkdir -p /srv/portfolio
|
mkdir -p /srv/portfolio
|
||||||
# Remove old files if exists
|
|
||||||
rm -rf /srv/portfolio/*
|
|
||||||
# Clone website repo
|
# Clone website repo
|
||||||
git clone -b main --depth 1 https://git.cohabit.fr/cohabit/portfolio_server.git /srv/portfolio
|
git clone -b main --depth 1 https://git.cohabit.fr/cohabit/portfolio_server.git /srv/portfolio
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
nala install -y vim
|
nala install -y vim
|
||||||
|
|
||||||
# Install or upgrade vundle
|
# 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
|
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
|
# Install zsh-autosuggestions plugin
|
||||||
PATH=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
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
|
git clone https://github.com/zsh-users/zsh-autosuggestions $PATH
|
||||||
|
|
||||||
# Install zsh-syntax-highlighting
|
# Install zsh-syntax-highlighting
|
||||||
PATH=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/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
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting $PATH
|
||||||
|
|
Loading…
Reference in a new issue