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:
parent
7cfd5e67c7
commit
5f4599f15d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user