This commit is contained in:
Stephan Raabe 2024-03-01 13:36:35 +01:00
parent 008df7b755
commit 97aa0af0a7

View File

@ -12,7 +12,16 @@ figlet "Update"
echo echo
if gum confirm "Do you want to start the update now?" ;then if gum confirm "Do you want to start the update now?" ;then
# Remove existing download folder # Remove existing download folder and zip files
if [ -f $HOME/Downloads/dotfiles-main.zip ] ;then
rm $HOME/Downloads/dotfiles-main.zip
fi
if [ -f $HOME/Downloads/dotfiles-dev.zip ] ;then
rm $HOME/Downloads/dotfiles-dev.zip
fi
if [ -f $HOME/Downloads/dotfiles.zip ] ;then
rm $HOME/Downloads/dotfiles.zip
fi
if [ -d $HOME/Downloads/dotfiles ] ;then if [ -d $HOME/Downloads/dotfiles ] ;then
rm -rf $HOME/Downloads/dotfiles rm -rf $HOME/Downloads/dotfiles
fi fi