Skip to content

Commit

Permalink
revert tty change
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Nov 9, 2019
1 parent fc107ed commit 386a1b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ check_output() {
cmd=$1
expected=$2

out_tty=$(tty)
output=$(${cmd} | tee "${out_tty}")
output=$(${cmd} | tee "$(tty)")
if ! echo "${output}" | grep -q "${expected}"; then
printf "\\033[1;91m ===> error:\\033[0m did not match \"%s\"\n" \
"${expected}"
Expand Down

0 comments on commit 386a1b2

Please sign in to comment.