Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions blcheck
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ for BL in $CONF_BLACKLISTS; do

# It is a proper blacklist
if [ "$BLACKLISTS" ]; then
BLACKLISTS=$(echo -e "$BLACKLISTS\n$DOMAIN")
BLACKLISTS="$BLACKLISTS $DOMAIN"
else
BLACKLISTS="$BL"
fi
Expand All @@ -357,7 +357,7 @@ for BL in $CONF_BLACKLISTS; do
done

# Make sure we have at least one blacklist
COUNT=$(($(echo "$BLACKLISTS" | wc -l)))
COUNT=$(($(echo "$BLACKLISTS"|wc -w)))
if [ ! "$BLACKLISTS" ] || [ "$COUNT" -eq 0 ]; then
error "No blacklists have been specified"
fi
Expand Down Expand Up @@ -387,7 +387,7 @@ for BL in $BLACKLISTS; do

# Show percentage
STATUS=$(printf " %3s" $((I * 100 / COUNT)))
STATUS="$STATUS%% "
STATUS="$STATUS% "

# Show additional info
if [ $VERBOSE -ge 3 ]; then
Expand Down Expand Up @@ -473,4 +473,3 @@ if [ $VERBOSE -ge 0 ]; then
fi

exit $FAILED;