Shell scripts sometimes have to append data to a file. Redirecting output with >>
is the conventional way and works fine, but using tee -a
instead is a usually better default, especially in continuous integration. It’s just as easy and gives automatic introspection: the same value is printed to stdout and so appears in normal logs too.
Keep reading