0
0
mirror of https://github.com/letic/Shell-Scripts.git synced 2024-09-28 05:56:04 +00:00

Send stdout to dev null and send stderr to wherever stdout goes

This commit is contained in:
Mark McDonnell 2016-04-06 12:38:53 +01:00
parent 7cfd5e67c7
commit 5f4599f15d

View File

@ -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"