From 89fd3ebdfe51688b45eb6cc069d53ac045a0ebed Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Sun, 21 Jun 2020 02:18:21 +0200 Subject: [PATCH] repo_sync: fix variable names Signed-off-by: Julien Pivotto --- scripts/sync_repo_files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sync_repo_files.sh b/scripts/sync_repo_files.sh index f2630b555..38bb89152 100755 --- a/scripts/sync_repo_files.sh +++ b/scripts/sync_repo_files.sh @@ -59,10 +59,10 @@ process_repo() { local needs_update=0 for source_file in ${SYNC_FILES}; do - source_checksum="$(sha256sum "${souce_dir}/${source_file}" | cut -d' ' -f1)" + source_checksum="$(sha256sum "${source_dir}/${source_file}" | cut -d' ' -f1)" target_file="$(curl -s --fail "https://raw.githubusercontent.com/${org_repo}/master/${source_file}")" - if [[ -z "${target_makefile}" ]]; then + if [[ -z "${target_file}" ]]; then echo "${source_file} doesn't exist in ${org_repo}" continue fi