File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -488,8 +488,13 @@ main() {
488
488
fi
489
489
hex_to_decimal " $bar_color "
490
490
check_config " $@ "
491
- last_plex_backup=" $( date -r " ${ config_dir} /.last_plex_backup.tmp" +%s ) "
491
+ last_plex_backup=" $config_dir /.last_plex_backup.tmp"
492
492
# check for .last_plex_backup.tmp file and if it exists, read the file to get the last backup date
493
+ if [ ! -f " $last_plex_backup " ]; then
494
+ verbose_output " Creating last backup file"
495
+ touch " $last_plex_backup "
496
+ fi
497
+
493
498
if [ -f " $last_plex_backup " ]; then
494
499
while IFS= read -r line; do
495
500
lastbackup=$line
@@ -498,9 +503,8 @@ main() {
498
503
lastbackup=0
499
504
fi
500
505
if [ " $debug " == " True" ]; then
506
+ echo " Config Dir: $config_dir "
501
507
echo " Last Plex Backup: $last_plex_backup "
502
- fi
503
- if [ " $debug " == " True" ]; then
504
508
echo " Last backup: $lastbackup "
505
509
fi
506
510
# get current date
You can’t perform that action at this time.
0 commit comments