From 807917338ef7423b1a9f214f84ba8940a6032ab1 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 11 Jul 2024 14:31:47 +0200 Subject: [PATCH] fix: remove base dir and not only files before `git clone` --- portfolio_server/_install.sh | 4 ++-- vim/_install.sh | 2 +- zsh/_deploy.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/portfolio_server/_install.sh b/portfolio_server/_install.sh index 7360a43..2076713 100644 --- a/portfolio_server/_install.sh +++ b/portfolio_server/_install.sh @@ -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 diff --git a/vim/_install.sh b/vim/_install.sh index f9edea9..993c35d 100644 --- a/vim/_install.sh +++ b/vim/_install.sh @@ -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 diff --git a/zsh/_deploy.sh b/zsh/_deploy.sh index f0c8688..69a22b6 100644 --- a/zsh/_deploy.sh +++ b/zsh/_deploy.sh @@ -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