]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use [ -t 1 ] as suggested 8583/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 29 Nov 2019 08:16:40 +0000 (09:16 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 29 Nov 2019 08:16:40 +0000 (09:16 +0100)
build-scripts/format-code

index ed4898f33b0fc2e6927a11db55daad902b41a5cc..8a34910e079177a38c7768d22e63e0b09dcf990d 100755 (executable)
@@ -21,7 +21,7 @@ if [ ! -e .clang-format ]; then
 fi
 
 verbose=0
-if tty > /dev/null; then
+if [ -t 1 ]; then
     verbose=1
 fi
 if [ x$CIRCLECI = xtrue ]; then