]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
safcm: don't color output if stderr is redirected
authorSimon Ruderich <simon@ruderich.org>
Sun, 9 May 2021 10:46:18 +0000 (12:46 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 9 May 2021 13:18:45 +0000 (15:18 +0200)
commitb005e2efaff6fd99dbf8e45bf76bba40c655a72a
tree1f1f4d21bfab569335751473d73da90f3db19260
parent8222dd7be72bef3773eb66b04af6094e584b13fb
safcm: don't color output if stderr is redirected

All log messages are printed to stderr. It's confusing to still get
colored output when redirecting stderr to a file; only redirecting
stdout as well fixed this.
cmd/safcm/sync.go