Merge pull request #191 from ChuckPa/chuckpa/handle-null-LC_ALL

Set LC_ALL=C when null
This commit is contained in:
Chuck 2025-03-18 21:54:25 -04:00 committed by GitHub
commit dfebe80fa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -2,12 +2,12 @@
######################################################################### #########################################################################
# Plex Media Server database check and repair utility script. # # Plex Media Server database check and repair utility script. #
# Maintainer: ChuckPa # # Maintainer: ChuckPa #
# Version: v1.10.02 # # Version: v1.10.03 #
# Date: 03-Jan-2025 # # Date: 17-Mar-2025 #
######################################################################### #########################################################################
# Version for display purposes # Version for display purposes
Version="v1.10.02" Version="v1.10.03"
# Have the databases passed integrity checks # Have the databases passed integrity checks
CheckedDB=0 CheckedDB=0
@ -62,6 +62,9 @@ STATPERMS="%a"
# On all hosts except QNAP # On all hosts except QNAP
DFFLAGS="-m" DFFLAGS="-m"
# If LC_ALL is null, default to C
[ "$LC_ALL" = "" ] && export LC_ALL=C
# Universal output function # Universal output function
Output() { Output() {
if [ $Scripted -gt 0 ]; then if [ $Scripted -gt 0 ]; then

View File

@ -8,6 +8,10 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg) ![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# Release Info: # Release Info:
v1.10.03
1. LC_ALL - When LC_ALL="", set LC_ALL=C (MacOS now needs this)
v1.10.02 v1.10.02
1. Refactor UPDATE - QNAP BusyBox no longer support POSIX grep. Refactored. 1. Refactor UPDATE - QNAP BusyBox no longer support POSIX grep. Refactored.