sed/cat
This commit is contained in:
parent
2ac9ad2ff2
commit
cea7709998
1 changed files with 1 additions and 1 deletions
2
cd.sh
2
cd.sh
|
@ -292,7 +292,6 @@ local file
|
||||||
"|^mirrorlist|# mirrorlist|" \
|
"|^mirrorlist|# mirrorlist|" \
|
||||||
"|${CD_DEFAULT_REPO_ALMA}|${CD_OS_REPO}|" \
|
"|${CD_DEFAULT_REPO_ALMA}|${CD_OS_REPO}|" \
|
||||||
"|^# baseurl|baseurl|"
|
"|^# baseurl|baseurl|"
|
||||||
cd_cat "${file}"
|
|
||||||
;;
|
;;
|
||||||
"${CD_OS_ALPINE}")
|
"${CD_OS_ALPINE}")
|
||||||
file="/etc/apk/repositories"
|
file="/etc/apk/repositories"
|
||||||
|
@ -544,6 +543,7 @@ local file
|
||||||
for expression in "${@}" ; do
|
for expression in "${@}" ; do
|
||||||
sed --in-place "s${expression}g" "${file}" || exit
|
sed --in-place "s${expression}g" "${file}" || exit
|
||||||
done
|
done
|
||||||
|
cd_cat "${file}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue