[util]add reset_pac_conf() to be used in buildiso

This commit is contained in:
udeved 2016-05-20 18:05:15 +02:00 committed by Philip
parent c2d57e0529
commit cd376c8b4f

View file

@ -53,6 +53,12 @@
# echo ${repos[@]}
# }
reset_pac_conf(){
local conf=$1
sed -e "s|^.*HoldPkg = pacman glibc|HoldPkg = pacman glibc manjaro-system|" \
-e "s|^.*#CheckSpace|CheckSpace|" -i "$1"
}
read_set(){
local _space="s| ||g" \
_clean=':a;N;$!ba;s/\n/ /g' \