From f45227abc482899a619730efc38ce67532ec1b26 Mon Sep 17 00:00:00 2001 From: ChuckPa Date: Wed, 9 Nov 2022 21:38:24 -0500 Subject: [PATCH] Change 'cut' back to awk --- DBRepair.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBRepair.sh b/DBRepair.sh index 8423463..d6fc7f4 100755 --- a/DBRepair.sh +++ b/DBRepair.sh @@ -1101,7 +1101,7 @@ do echo ".dump metadata_item_settings" | "$PLEX_SQLITE" "$Input" | grep -v TABLE | grep -v INDEX > "$TMPDIR/Viewstate.sql-$TimeStamp" # Make certain we got something usable - if [ $(wc -l "$TMPDIR/Viewstate.sql-$TimeStamp" | cut -d " " -f 1) -lt 1 ]; then + if [ $(wc -l "$TMPDIR/Viewstate.sql-$TimeStamp" | awk '{print $1}') -lt 1 ]; then Output "No viewstates found to import." continue fi