Fix echo variable pipe for NewSuppDir

This commit fixes a `NewSuppDir` bug reported in the forum SQLite3 thread, https://forums.plex.tv/t/suggested-sqlite3-db-optimizations/794749/122
where a `sed` was missing its `echo` variable and pipe.

The code between lines 328 and 350 was cut and tested in a Bourne script on a Mac, but not the whole `DBRepair.sh` on the user's OS.
There's no real need to pull this, as it's not for extra credit :)  But it get's the word out in a central location.
This commit is contained in:
2bits 2022-11-06 13:40:42 -08:00 committed by GitHub
parent d967c08e2f
commit 7c5ffd9665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ HostConfig() {
cat override.conf local.conf *.conf 2>/dev/null | grep "APPLICATION_SUPPORT_DIR" | head -1)" cat override.conf local.conf *.conf 2>/dev/null | grep "APPLICATION_SUPPORT_DIR" | head -1)"
if [ "$NewSuppDir" != "" ]; then if [ "$NewSuppDir" != "" ]; then
NewSuppDir="$(sed -e 's/.*_DIR=//' | tr -d '"' | tr -d "'")" NewSuppDir="$(echo $NewSuppDir | sed -e 's/.*_DIR=//' | tr -d '"' | tr -d "'")"
if [ -d "$NewSuppDir" ]; then if [ -d "$NewSuppDir" ]; then
AppSuppDir="$NewSuppDir" AppSuppDir="$NewSuppDir"