From 5f4599f15d27974849dd623e95ddf071ccae062f Mon Sep 17 00:00:00 2001 From: Mark McDonnell Date: Wed, 6 Apr 2016 12:38:53 +0100 Subject: [PATCH] Send stdout to dev null and send stderr to wherever stdout goes --- hooks/pre-commit-rubocop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre-commit-rubocop b/hooks/pre-commit-rubocop index 693c077..8fa7e7f 100644 --- a/hooks/pre-commit-rubocop +++ b/hooks/pre-commit-rubocop @@ -3,7 +3,7 @@ # 1. Rename to pre-commit # 2. Copy to .git/hooks/pre-commit -docker ps 2> /dev/null +docker ps 1> /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Check that docker is running correctly"