Skip to content

Commit

Permalink
Update backup_plex.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 20, 2024
1 parent 8cb8d2c commit 0857161
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/backup_plex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -500,15 +500,14 @@ main() {
hex_to_decimal "$bar_color"
check_config "$@"
last_plex_backup="$config_dir/.last_plex_backup.tmp"

# check for .last_plex_backup.tmp file and if it exists, read the file to get the last backup date

if [ -f "$last_plex_backup" ]; then
while IFS= read -r line; do
lastbackup=$line
done <"$last_plex_backup"
lastbackup=$(cat "$last_plex_backup")
else
lastbackup=0
fi

if [ "$debug" == "True" ]; then
echo "Config Dir: $config_dir"
echo "Last Plex Backup: $last_plex_backup"
Expand Down

0 comments on commit 0857161

Please sign in to comment.