File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,10 @@ function backup_func() {
128128 cecho " Skipping compression & encryption due to the 'discouraged_disable_archive' option being set to 'yes'."
129129 cecho " The backup data will be stored in a directory instead."
130130 # TODO: clean up the code, i.e. remove the repetition
131- declare backup_archive=" $archive_path /open-android-backup-$( date +%m-%d-%Y-%H-%M-%S) "
132- mkdir -p " $archive_path /open-android-backup-$( date +%m-%d-%Y-%H-%M-%S) "
133- mv ./backup-tmp " $archive_path /open-android-backup-$( date +%m-%d-%Y-%H-%M-%S) "
131+ backup_timestamp=$( date +%m-%d-%Y-%H-%M-%S)
132+ declare backup_archive=" $archive_path /open-android-backup-$backup_timestamp "
133+ mkdir -p " $archive_path /open-android-backup-$backup_timestamp "
134+ mv ./backup-tmp " $archive_path /open-android-backup-$backup_timestamp "
134135 else
135136 # Compress
136137 cecho " Compressing & encrypting data - this will take a while."
You can’t perform that action at this time.
0 commit comments