From d2244066d54439d5c5a716889b412fc34648b4f2 Mon Sep 17 00:00:00 2001 From: natemaia Date: Sat, 28 Oct 2017 22:40:10 -0700 Subject: [PATCH] No backup if one already exists --- upgrade-archlabs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/upgrade-archlabs b/upgrade-archlabs index 2efdebb1..5c310048 100755 --- a/upgrade-archlabs +++ b/upgrade-archlabs @@ -67,8 +67,9 @@ backupConfigs() { ############################################################################################" # Do the archive - tar czvf $HOME/Downloads/$USER-config-backup.tar.gz $HOME/.{config,Xresources,zshrc,bashrc,icons,xsession,xsessionrc,xinitrc} > /dev/null 2>&1 - + if ! [ -e "$HOME/Downloads/$USER-config-backup.tar.gz" ]; then + tar czvf $HOME/Downloads/$USER-config-backup.tar.gz $HOME/.{config,Xresources,zshrc,bashrc,icons,xsession,xsessionrc,xinitrc} > /dev/null 2>&1 + fi # set BACKEDUP for setupConfigs check BACKEDUP="Done"