Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 1, 2024
1 parent f9895b2 commit 0fbfe79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions/build_lists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readonly RAW_LIGHT='data/raw_light.txt'

build() {
# Set default comment character to '#'
comment=${comment:-'#'}
comment=${comment:-#}

mkdir -p "lists/${directory}"

Expand All @@ -20,7 +20,7 @@ build() {
fi

source_file="${source_file:-$RAW}"
blocklist_path="lists/${directory}/${list_name:-'scams.txt'}"
blocklist_path="lists/${directory}/${list_name:-scams.txt}"

# Append header onto blocklist
cat << EOF > "$blocklist_path"
Expand Down
2 changes: 1 addition & 1 deletion functions/update_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ EOF
# for each source.
# $1: source to process (default is all sources)
print_stats() {
[[ -z "$1" ]] && source='All sources' || source="$1"
source="${3:-All sources}"
printf "%5s |%10s |%8s%% | %s\n" \
"$(sum "$TODAY" "$1")" "$(sum "$YESTERDAY" "$1")" "$(count_excluded "$1" )" "$source"
}
Expand Down

0 comments on commit 0fbfe79

Please sign in to comment.