File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ perDiffWidth=$(expr $screenWidthMinusBuffer / 2)
3030fileA=$2
3131fileB=$5
3232
33- filenameA=` basename $1 `
33+ filenameA=$( basename $1 )
3434extA=${filenameA##* .}
35- filenameB=` basename $5 `
35+ filenameB=$( basename $5 )
3636extB=${filenameB##* .}
3737
3838# Header row
@@ -55,14 +55,14 @@ printf "$(yes " " | head -n$sideBySideBuffer | tr -d '\n')"
5555printf " $( yes " —" | head -n$perDiffWidth | tr -d ' \n' ) "
5656echo
5757
58- outputA=` convert $fileA jpg:- | jp2a --color --width=$perDiffWidth -`
59- outputB=` convert $fileB jpg:- | jp2a --color --width=$perDiffWidth -`
58+ outputA=$( convert $fileA jpg:- | jp2a --color --width=$perDiffWidth -)
59+ outputB=$( convert $fileB jpg:- | jp2a --color --width=$perDiffWidth -)
6060
61- heightA=` echo " $outputA " | wc -l | xargs`
62- heightB=` echo " $outputB " | wc -l | xargs`
63- max=` echo " $heightA \n$heightB " | sort -nr | head -n1`
61+ heightA=$( echo " $outputA " | wc -l | xargs)
62+ heightB=$( echo " $outputB " | wc -l | xargs)
63+ max=$( echo " $heightA \n$heightB " | sort -nr | head -n1)
6464
65- for i in ` seq 1 $max `
65+ for i in $( seq 1 $max )
6666do
6767 A=$( echo " $outputA " | sed -n ${i} p)
6868 B=$( echo " $outputB " | sed -n ${i} p)
You can’t perform that action at this time.
0 commit comments