From e0eb28ab7924a9328e4e382b7deb96e78110b1d9 Mon Sep 17 00:00:00 2001 From: xyz Date: Wed, 11 Aug 2021 04:38:58 -0700 Subject: refactor --- .local/bin/convwall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/convwall') diff --git a/.local/bin/convwall b/.local/bin/convwall index 5249aead..dbd9c795 100755 --- a/.local/bin/convwall +++ b/.local/bin/convwall @@ -20,7 +20,7 @@ if [ "$dim" -ne "$ratio" ]; then chopgeom="0x$chopnum" height=$(echo "$width*$hratio/$wratio" | bc) fi - # may throw error sort: write failed: 'standard output': Broken pipe \n sort: write error + # may throw error "sort: write failed: 'standard output': Broken pipe \n sort: write error" # caused by head exit (or close stdin) before sort output complete, can ignore # https://stackoverflow.com/questions/46202653/bash-error-in-sort-sort-write-failed-standard-output-broken-pipe bgcolor=$(convert "$1" -gravity center -chop "$chopgeom" -define histogram:unique-colors=true -format %c histogram:info:- | sort -rn | head -n1 | awk \{print\ \$3\} | cut -c1-7) -- cgit v1.2.3-70-g09d2