From dfca1ede697c4d9619a86efb3969f89eb7279a83 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 27 Jun 2020 20:22:58 -0500 Subject: [PATCH] Fix shellcheck issue with reddit script --- scripts/appscripts/sxmo_reddit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/appscripts/sxmo_reddit.sh b/scripts/appscripts/sxmo_reddit.sh index 2fe7798..752740b 100755 --- a/scripts/appscripts/sxmo_reddit.sh +++ b/scripts/appscripts/sxmo_reddit.sh @@ -17,7 +17,7 @@ menu() { tr -d '\n' | sed 's/===/\n/g' | sed 's/^\t//g' | - sort -t$'\t' -rnk4 | + sort -t"$(printf '%b' '\t')" -rnk4 | awk -F'\t' '{ printf "↑%4s", $3; print " " $4 " " $1 " " $2 }' )"