HOME for Clover EFI Backups

This commit is contained in:
chris1111 2020-11-18 12:59:46 -05:00 committed by GitHub
parent 913abfe7b4
commit 914d505aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,10 +92,10 @@ done
keepBackupLimit=$(GetNVRamKey 'Clover.KeepBackupLimit')
backupDirOnDestVol=$(GetNVRamKey 'Clover.BackupDirOnDestVol')
if [[ "$backupDirOnDestVol" =~ N|n ]]; then
backupRootDir="$EFI_ROOT_DIR/$HOME/Desktop/Clover EFI Backups"
backupRootDir="$EFI_ROOT_DIR/$HOME/Clover EFI Backups"
[[ -z "$keepBackupLimit" ]] && keepBackupLimit=0
else
backupRootDir="$DEST_VOL/$HOME/Desktop/Clover EFI Backups" # backup on destination volume (default)
backupRootDir="$DEST_VOL/$HOME/Clover EFI Backups" # backup on destination volume (default)
[[ -z "$keepBackupLimit" ]] && keepBackupLimit=10
fi
backupDir="${backupRootDir}/$old_revision/"$( date -j "+%F-%Hh%M" )