create-repo-branch.sh: Fix a typo

Fix a minor typo in create-repo-branch 
script. 

Fixes:  #201

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
nitkon 2018-10-02 15:05:25 +05:30 committed by GitHub
parent 356de607fa
commit 161bc07028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ read_maintainers(){
while read -r p; do while read -r p; do
[[ "$p" != "#"* ]] || continue [[ "$p" != "#"* ]] || continue
maintainers+=("${p}::maintainer") maintainers+=("${p}::maintainer")
echo "Adding mantainer: ${p}" echo "Adding maintainer: ${p}"
done < "${script_dir}/maintainers" done < "${script_dir}/maintainers"
} }
@ -86,8 +86,8 @@ create_repos_xml_nodes() {
done done
} }
create_mantainers_xml_nodes() { create_maintainers_xml_nodes() {
for entry in "${mantainers[@]}"; do for entry in "${maintainers[@]}"; do
[ -z "$entry" ] && die "found empty entry" [ -z "$entry" ] && die "found empty entry"
local userid=$(echo "$entry" | awk -F"::" '{print $1;}') local userid=$(echo "$entry" | awk -F"::" '{print $1;}')
local role=$(echo "$entry" | awk -F"::" '{print $2;}') local role=$(echo "$entry" | awk -F"::" '{print $2;}')
@ -109,7 +109,7 @@ create_meta_xml() {
<project name="${project}"> <project name="${project}">
<title>Branch project for Kata Containers branch ${branch}</title> <title>Branch project for Kata Containers branch ${branch}</title>
<description>This project is the Kata Containers branch ${branch}</description> <description>This project is the Kata Containers branch ${branch}</description>
$(create_mantainers_xml_nodes) $(create_maintainers_xml_nodes)
$(create_repos_xml_nodes) $(create_repos_xml_nodes)
</project> </project>
EOT EOT