Merge pull request #202 from nitkon/patch-2

create-repo-branch.sh: Fix a typo
This commit is contained in:
Graham Whaley
2018-10-02 15:42:51 +01:00
committed by GitHub

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