Skip to content

Commit

Permalink
fixed centos part in erlang.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed Jan 1, 2017
1 parent 6c8a970 commit 507d3e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erlang.sh
Expand Up @@ -49,7 +49,7 @@ keepcache=0
EOF

for elver in ${EL_VERSIONS}; do
for elver in ${EL_VERSIONS[@]}; do
cat << EOF >> $cfg
[$elver]
name=Elang for el-${elver}
Expand All @@ -60,6 +60,8 @@ done

if [[ -z ${DRY_RUN:-} ]]; then
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/${elver}/ ${YUM_PATH}/${elver}/
for elver in ${EL_VERSIONS[@]}; do
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/${elver}/ ${YUM_PATH}/${elver}/
done
fi
rm $cfg

0 comments on commit 507d3e4

Please sign in to comment.