From 7c5ffd96653cd9e6302103db156b5320fe86a9d9 Mon Sep 17 00:00:00 2001 From: 2bits <1025689+2bits@users.noreply.github.com> Date: Sun, 6 Nov 2022 13:40:42 -0800 Subject: [PATCH] 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. --- DBRepair.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBRepair.sh b/DBRepair.sh index 97754f1..5d83e36 100755 --- a/DBRepair.sh +++ b/DBRepair.sh @@ -338,7 +338,7 @@ HostConfig() { cat override.conf local.conf *.conf 2>/dev/null | grep "APPLICATION_SUPPORT_DIR" | head -1)" 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 AppSuppDir="$NewSuppDir"