util: fix profiles dir detection

This commit is contained in:
udeved 2017-02-20 15:21:17 +01:00
parent 3d9cca313f
commit 00810ca7fc

View file

@ -708,7 +708,7 @@ write_repo_conf(){
local path name
[[ -z ${repos[@]} ]] && run_dir=${DATADIR}/iso-profiles && return 1
for r in ${repos[@]}; do
path=${r%/.*}
path=${r%/repo_info}
name=${path##*/}
echo "run_dir=$path" > ${USERCONFDIR}/$name.conf
done