Skip to content

Commit

Permalink
- B better non-interactive check
Browse files Browse the repository at this point in the history
Co-Authored-By: Jay Bazuzi <jay@bazuzi.com>
  • Loading branch information
nitsanavni and JayBazuzi committed Jan 28, 2025
1 parent fda9b9b commit abe0657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ diff -q "$received" "$approved" >/dev/null &&
) ||
(
echo "test failed"
if [ -e /dev/tty ]; then
if [ -t 1 ]; then
$diff_tool "$received" "$approved" </dev/tty
else
$diff_tool "$received" "$approved"
Expand Down

0 comments on commit abe0657

Please sign in to comment.