Skip to content

Commit 93c5d5c

Browse files
authored
Update Linux_Plex_Backup.sh
1 parent 12204fd commit 93c5d5c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Linux_Plex_Backup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ script=Linux_Plex_Backup
2323

2424

2525
# Read variables from backup_linux_plex.config
26+
Backup_Directory=""
27+
Name=""
28+
LogAll=""
2629
if [[ -f $(dirname -- "$0";)/backup_linux_plex.config ]];then
2730
# shellcheck disable=SC1090,SC1091
2831
while read -r var; do
@@ -111,7 +114,7 @@ Tmp_Err_Log_File=$(mktemp "${Tmp_Dir}"/errorlog-XXXXXX)
111114

112115
# Tmp logs clean up function
113116
# shellcheck disable=SC2329
114-
cleanup(){
117+
cleanup() {
115118
arg1=$?
116119
# Move tmp_error_log to error log if tmp_error_log is not empty
117120
if [[ -s $Tmp_Err_Log_File ]] && [[ -d $Backup_Directory ]]; then

0 commit comments

Comments
 (0)