Skip to content

Commit

Permalink
Merge pull request #17 from leaf-avf/main
Browse files Browse the repository at this point in the history
Update Synology_Plex_Backup.sh
  • Loading branch information
007revad authored Mar 6, 2024
2 parents 6059b35 + 6c2d250 commit 996b9e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Synology_Plex_Backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,14 @@ esac

#--------------------------------------------------------------------------
# Create backup directory if it does not exist yet
[[ $Backup_Directory =~ ^/volume.* ]] && mkdir -p "$Backup_Directory"
if [[ $Backup_Directory =~ ^/volume.* ]]; then
mkdir -p "$Backup_Directory"
else
# Can't log error to log file because $Backup_Directory does not exist
echo -e "\nERROR: The parameter "Backup_Directory" has a wrong value ($Backup_Directory)"
echo -e "Please use only user's volumes (should start with /volumeN/ part!)"
exit 255
fi

# Set temporary log filenames (we get the Plex version later)

Expand Down

0 comments on commit 996b9e2

Please sign in to comment.