From ebdf81b3dc1922210de422ce78de7c0ebee10f3d Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 15 Jun 2017 11:42:43 +0100 Subject: [PATCH] scripts: sources-branch-updater-lib.sh: Fix typos Commit e9ef150728d1 ("scripts: Introduce sources-branch-updater-lib library") introduced the sources-branch-updater-lib.sh library which can be used by external scripts to do their own tagging. However, this also introduced a few typos. 'osa_helper_cleanu_files' should be 'osa_helper_cleanup_files' and 'OSA_BRANCH' should be 'osa_branch' Fixes: e9ef150728d1 ("scripts: Introduce sources-branch-updater-lib library") Change-Id: I4c5c7320b038c5c0f75cffa47c82f74bd50ee9bc --- scripts/sources-branch-updater-lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sources-branch-updater-lib.sh b/scripts/sources-branch-updater-lib.sh index d04b69372a..b6324cd6cb 100644 --- a/scripts/sources-branch-updater-lib.sh +++ b/scripts/sources-branch-updater-lib.sh @@ -235,7 +235,7 @@ update_ansible_role_requirements() { # Grab the latest SHA that matches the specified branch if [[ -z "${role_version}" ]]; then - role_version=$(git ls-remote ${role_src} | grep "${OSA_BRANCH}$" | awk '{print $1}') + role_version=$(git ls-remote ${role_src} | grep "${osa_branch}$" | awk '{print $1}') fi # For OSA roles, get the release notes @@ -249,7 +249,7 @@ update_ansible_role_requirements() { rsync -aq ${osa_repo_tmp_path}/releasenotes/notes/*.yaml releasenotes/notes/ fi - osa_helper_cleanu_files $osa_repo_tmp_path + osa_helper_cleanup_files $osa_repo_tmp_path fi # Now use the information we have to update the ansible-role-requirements file