Add support for DEBUG flag
This commit is contained in:
@@ -202,12 +202,14 @@ while true
|
||||
do
|
||||
if read RECORD
|
||||
then
|
||||
if [[ "$DEBUG" == "1" ]]
|
||||
then
|
||||
echo "$(ts) [DEBUG] $RECORD"
|
||||
fi
|
||||
|
||||
EVENT=$(echo "$RECORD" | cut -d' ' -f 1)
|
||||
FILE=$(echo "$RECORD" | cut -d' ' -f 2-)
|
||||
|
||||
# echo "EVENT=$EVENT"
|
||||
# echo "FILE=$FILE"
|
||||
|
||||
if ! is_change_event "$EVENT" "$FILE"
|
||||
then
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user