fix: remove base dir and not only files before git clone

This commit is contained in:
Julien Oculi 2024-07-11 14:31:47 +02:00
parent cf998be24c
commit 807917338e
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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