diff --git a/functions/check_parked.sh b/functions/check_parked.sh index c9084bda7..cbf784061 100644 --- a/functions/check_parked.sh +++ b/functions/check_parked.sh @@ -142,8 +142,8 @@ format_file() { } cleanup() { - find . -maxdepth 1 -type f -name "*.tmp" -delete - find . -maxdepth 1 -type f -name "x??" -delete + find . -maxdepth 1 -type f -name '*.tmp' -delete + find . -maxdepth 1 -type f -name 'x??' -delete # Prune old entries from parked domains file if (( $(wc -l < "$PARKED_DOMAINS") > 4000 )); then diff --git a/functions/retrieve_domains.sh b/functions/retrieve_domains.sh index c252c0983..01f440196 100644 --- a/functions/retrieve_domains.sh +++ b/functions/retrieve_domains.sh @@ -230,9 +230,9 @@ build() { # Mark sources as saved in the source log file rows="$(sed 's/,no/,yes/' <(grep -F "$TIME_FORMAT" "$SOURCE_LOG"))" # Remove previous logs - temp_SOURCE_LOG="$(grep -vF "$TIME_FORMAT" "$SOURCE_LOG")" + temp_source_log="$(grep -vF "$TIME_FORMAT" "$SOURCE_LOG")" # Add updated logs - printf "%s\n%s\n" "$temp_SOURCE_LOG" "$rows" > "$SOURCE_LOG" + printf "%s\n%s\n" "$temp_source_log" "$rows" > "$SOURCE_LOG" # Exit with error if domains need to be manually reviewed if [[ -f manual_review.tmp ]]; then @@ -284,10 +284,10 @@ format_file() { } cleanup() { - # Initialize pending directory is no pending domains to be saved + # Initialize pending directory if no pending domains to be saved find data/pending -type d -empty -delete - find . -maxdepth 1 -type f -name "*.tmp" -delete + find . -maxdepth 1 -type f -name '*.tmp' -delete } # Source functions are to retrieve results from the respective sources. @@ -303,7 +303,8 @@ cleanup() { # $results_file (if results retrieved) source_google_search() { - command -v csvgrep &> /dev/null || pip install -q csvkit # Install csvkit + # Install csvkit + command -v csvgrep &> /dev/null || pip install -q csvkit local source='Google Search' local results_file diff --git a/functions/update_readme.sh b/functions/update_readme.sh index 16710d3f9..f1374b5f5 100644 --- a/functions/update_readme.sh +++ b/functions/update_readme.sh @@ -175,7 +175,7 @@ count_excluded() { # Entry point -trap 'find . -maxdepth 1 -type f -name "*.tmp" -delete' EXIT +trap 'find . -maxdepth 1 -type f -name '*.tmp' -delete' EXIT command -v csvgrep &> /dev/null || pip install -q csvkit # Install csvkit diff --git a/functions/validate_raw.sh b/functions/validate_raw.sh index 72e627ed9..ef24ebc17 100644 --- a/functions/validate_raw.sh +++ b/functions/validate_raw.sh @@ -174,7 +174,7 @@ format_file() { # Entry point -trap 'find . -maxdepth 1 -type f -name "*.tmp" -delete' EXIT +trap 'find . -maxdepth 1 -type f -name '*.tmp' -delete' EXIT # Add new wildcards to the raw files cat "$WILDCARDS" >> "$RAW"