diff --git a/.github/workflows/opensquat.yml b/.github/workflows/opensquat.yml index ff95edfd6..70b364b24 100644 --- a/.github/workflows/opensquat.yml +++ b/.github/workflows/opensquat.yml @@ -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 diff --git a/functions/retrieve_domains.sh b/functions/retrieve_domains.sh index 17d473a23..af2090dad 100644 --- a/functions/retrieve_domains.sh +++ b/functions/retrieve_domains.sh @@ -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 @@ -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