diff --git a/scripts/sync_repo_files.sh b/scripts/sync_repo_files.sh index e48084856..96db2a232 100755 --- a/scripts/sync_repo_files.sh +++ b/scripts/sync_repo_files.sh @@ -71,7 +71,7 @@ process_repo() { echo -e "\e[32mAnalyzing '${org_repo}'\e[0m" default_branch="$(get_default_branch ${1})" - if [[ -z "${target_file}" ]]; then + if [[ -z "${default_branch}" ]]; then echo "Can't get the default branch." return fi