We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12204fd commit 93c5d5cCopy full SHA for 93c5d5c
1 file changed
Linux_Plex_Backup.sh
@@ -23,6 +23,9 @@ script=Linux_Plex_Backup
23
24
25
# Read variables from backup_linux_plex.config
26
+Backup_Directory=""
27
+Name=""
28
+LogAll=""
29
if [[ -f $(dirname -- "$0";)/backup_linux_plex.config ]];then
30
# shellcheck disable=SC1090,SC1091
31
while read -r var; do
@@ -111,7 +114,7 @@ Tmp_Err_Log_File=$(mktemp "${Tmp_Dir}"/errorlog-XXXXXX)
111
114
112
115
# Tmp logs clean up function
113
116
# shellcheck disable=SC2329
-cleanup(){
117
+cleanup() {
118
arg1=$?
119
# Move tmp_error_log to error log if tmp_error_log is not empty
120
if [[ -s $Tmp_Err_Log_File ]] && [[ -d $Backup_Directory ]]; then
0 commit comments