Fix SC2069 (wrong stdout/stderr redirect order)

In the original order, stderr was connected to the old stdout
(terminal). This was _probably_ not intended. The new order fixes this
by first connecting stdout to /dev/null and then attaching stderr to
that as well.
This commit is contained in:
Jonas Weber 2018-10-04 21:17:31 +02:00
parent ef8ec8641e
commit a6fdf4255a
1 changed files with 1 additions and 1 deletions

View File

@ -22,6 +22,6 @@
#
#
if command -v uname 2>&1 >/dev/null; then
if command -v uname >/dev/null 2>&1 ; then
uname -m
fi