Skip to content

Commit

Permalink
chore(subdiff): remove useless cat (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted authored Jan 15, 2022
1 parent 77cc346 commit 56e9585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subdiff.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ ! -s "$1" ] || [ ! -s "$2" ] || [ "$1" == "$2" ]; then
fi

_read_file() {
cat "$1" | rg '[^\d]|^\s*$'
rg '[^\d]|^\s*$' "$1"
}

diff -u <(_read_file "$1") <(_read_file "$2") | delta -s --wrap-max-lines unlimited
Expand Down

0 comments on commit 56e9585

Please sign in to comment.