Silent mode for non-interactive installs is broken

The installer has code to set the verbosity of the install to avoid spitting a bunch of junk in the output during non interactive installs. It’s based on a tty check like this:

# Only show progress bar animations if we have a tty
# (Prevents tons of console junk when installing within a pipe)
if [ -t 1 ]; then

However this is no longer working (at least in Ubuntu) because earlier in the script these lines mess up the tty check such that it is always true.

# Let's display everything on stderr.
exec 1>&2