Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 3, 2024
1 parent 6cc6674 commit f65cbda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/opensquat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
git diff-index --quiet HEAD || git commit -m "Retrieve domains via openSquat"
git push -q
build:
needs: run-opensquat
uses: ./.github/workflows/retrieve_domains.yml
#build:
# needs: run-opensquat
# uses: ./.github/workflows/retrieve_domains.yml
4 changes: 2 additions & 2 deletions functions/retrieve_domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ process_source() {
# Check if any results were retrieved
# [ -s ] does not seem to work well here
if ! grep -q '[a-z]' "$results_file"; then
local empty=true
local -r empty=true
log_source
rm "$results_file"
return
Expand Down Expand Up @@ -276,7 +276,7 @@ ${query_count:-0},${error},no" >> "$SOURCE_LOG"

printf "\n\e[1mSource: %s\e[0m\n" "${item:-$source}"

if [[ "$empty" == true ]]; then
if [[ "$error" == 'empty' ]]; then
printf "\e[1m;31No results retrieved. Potential error occurred.\e[0m\n"
return
fi
Expand Down

0 comments on commit f65cbda

Please sign in to comment.