diff --git a/bin/notify_file_change b/bin/notify_file_change index 8680b97966f..c1053df675a 100755 --- a/bin/notify_file_change +++ b/bin/notify_file_change @@ -6,7 +6,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../tmp && pwd )" SOCKET="$DIR"/file_change.sock if [[ -e "$SOCKET" ]]; then - if command -v socat; then + if command -v socat &> /dev/null; then echo "$1 $2" | socat - UNIX-CONNECT:$SOCKET >/dev/null 2>/dev/null else echo "$1 $2" | nc -U $SOCKET >/dev/null 2>/dev/null