No backup if one already exists

This commit is contained in:
natemaia 2017-10-28 22:40:10 -07:00
parent d655ba7463
commit d2244066d5

View File

@ -67,8 +67,9 @@ backupConfigs() {
############################################################################################" ############################################################################################"
# Do the archive # 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 # set BACKEDUP for setupConfigs check
BACKEDUP="Done" BACKEDUP="Done"