Change 'cut' back to awk

This commit is contained in:
ChuckPa
2022-11-09 21:38:24 -05:00
parent 303cde633d
commit f45227abc4

View File

@@ -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