No backup if one already exists
This commit is contained in:
parent
d655ba7463
commit
d2244066d5
@ -67,8 +67,9 @@ backupConfigs() {
|
|||||||
############################################################################################"
|
############################################################################################"
|
||||||
|
|
||||||
# Do the archive
|
# Do the archive
|
||||||
|
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
|
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"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user