Make format-checker pushd/popd quiet (#2241)
author이한종/동작제어Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Thu, 9 Aug 2018 07:58:20 +0000 (16:58 +0900)
committer박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 9 Aug 2018 07:58:20 +0000 (16:58 +0900)
Now that we have too many pushd/popd logs this commit makes it not to
print any messages from pushd/popd.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
scripts/command/format-checker.sh

index 26de416..75c345d 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+function pushd () {
+    command pushd "$@" > /dev/null
+}
+
+function popd () {
+    command popd "$@" > /dev/null
+}
+
 function check_cpp_tool() {
     which clang-format-3.9
     if [[ $? -ne 0 ]]; then